summaryrefslogtreecommitdiffstats
path: root/app/views/activities
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-05-19 22:27:41 +0000
committerGo MAEDA <maeda@farend.jp>2019-05-19 22:27:41 +0000
commitf992df684fe4db936ee56c1e7d334eebfae40329 (patch)
tree901f0b13ad2abe01c93116280a0ce3d435ec515c /app/views/activities
parent6f8bfab179ce785a08d13d137f849c6bfece0df9 (diff)
downloadredmine-f992df684fe4db936ee56c1e7d334eebfae40329.tar.gz
redmine-f992df684fe4db936ee56c1e7d334eebfae40329.zip
Small refactorization of avatar methods (#31391).
* move existing methods from ApplicationHelper to a new helper file (AvatarsHelper) * change default avatar size from 50 to 24 because most of the avatars are using the size 24 * class 'gravatar' is always added and all custom classes are appended * added user name as default title for avatar images * added two new methods: @assignee_avatar@ and @author_avatar@ Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18175 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/activities')
-rw-r--r--app/views/activities/_activities.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/activities/_activities.html.erb b/app/views/activities/_activities.html.erb
index 2a1f46cd7..aaeea76bc 100644
--- a/app/views/activities/_activities.html.erb
+++ b/app/views/activities/_activities.html.erb
@@ -4,7 +4,7 @@
<dl>
<% sort_activity_events(events_by_day[day]).each do |e, in_group| -%>
<dt class="<%= e.event_type %> icon icon-<%= e.event_type %> <%= "grouped" if in_group %> <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
- <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
+ <%= avatar(e.event_author) if e.respond_to?(:event_author) %>
<span class="time"><%= format_time(e.event_datetime, false) %></span>
<%= content_tag('span', e.project, :class => 'project') if @project.nil? || @project != e.project %>
<%= link_to format_activity_title(e.event_title), e.event_url %>