项目--文档--文件--代码评审 中用户头像显示错误
This commit is contained in:
parent
6b66a205b3
commit
4f0817a146
|
@ -1442,6 +1442,8 @@ module ApplicationHelper
|
|||
email = $1
|
||||
end
|
||||
return gravatar(email.to_s.downcase, options) unless email.blank? rescue nil
|
||||
#options ={"class" => ["avatar2"],"width" =>["80px"],"height" =>["80px"]}
|
||||
#return image_tag url_to_avatar(user), options
|
||||
else
|
||||
''
|
||||
end
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="sidebar">
|
||||
<div class="spaceleft">
|
||||
<div class="inf_user_image">
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
|
||||
<%= authoring reply.created_on, reply.user %>.
|
||||
</p>
|
||||
<%= avatar(reply.user, :size => "32") %>
|
||||
<%= image_tag(url_to_avatar(reply.user), :class => 'avatar2', :width=>32, :height=>32) %>
|
||||
<%#= avatar(reply.user, :size => "32") %>
|
||||
<ul>
|
||||
<% for detail in reply.details %>
|
||||
<li><%= show_detail(detail) %></li>
|
||||
|
|
|
@ -62,7 +62,8 @@
|
|||
|
||||
<!-- author and creation time -->
|
||||
<p class="author">
|
||||
<%= avatar(@review.user, :size => "64") %>
|
||||
<%= image_tag(url_to_avatar(@review.user), :class => 'avatar2', :width=>64, :height=>64) %>
|
||||
<%#= avatar(@review.user, :size => "64") %>
|
||||
<br />
|
||||
<%= authoring @review.created_at, @review.user %>.
|
||||
<%= l(:label_updated_time, distance_of_time_in_words(Time.now, @review.updated_at)) + '.' if @review.created_at != @review.updated_at %>
|
||||
|
|
Loading…
Reference in New Issue