diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-19 22:27:41 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-19 22:27:41 +0000 |
commit | f992df684fe4db936ee56c1e7d334eebfae40329 (patch) | |
tree | 901f0b13ad2abe01c93116280a0ce3d435ec515c /app/views/messages/show.html.erb | |
parent | 6f8bfab179ce785a08d13d137f849c6bfece0df9 (diff) | |
download | redmine-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/messages/show.html.erb')
-rw-r--r-- | app/views/messages/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 5756a9267..893659d6f 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -22,7 +22,7 @@ ) if @message.destroyable_by?(User.current) %> </div> -<h2><%= avatar(@topic.author, :size => "24") %><%= @topic.subject %></h2> +<h2><%= avatar(@topic.author) %><%= @topic.subject %></h2> <div class="message"> <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p> @@ -66,7 +66,7 @@ ) if message.destroyable_by?(User.current) %> </div> <h4> - <%= avatar(message.author, :size => "24") %> + <%= avatar(message.author) %> <%= link_to message.subject, { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %> - <%= authoring message.created_on, message.author %> |