diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-20 08:50:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-20 08:50:39 +0000 |
commit | 7467c145c03c07f42c844d52956fa708bb7d05ee (patch) | |
tree | 29b5d09a64047cf076c3eca8257c087de3fea268 /app/views/news | |
parent | 2ec87100a91f88e8eb220225141a3873e9aaf933 (diff) | |
download | redmine-7467c145c03c07f42c844d52956fa708bb7d05ee.tar.gz redmine-7467c145c03c07f42c844d52956fa708bb7d05ee.zip |
Replace uses of image_tag() with CSS (#21256).
* Replace image_tag() with CSS classes
* Create some CSS classes where necessary
* Change "check all" positioned on the right in "Trackers -> Summary" and
"Roles -> Permissions report" instead of left like in "Worfklow"
* Add missing title attribute in a few places
* Makes some lines shorter while at it
Patch by Daniel Ritz.
git-svn-id: http://svn.redmine.org/redmine/trunk@15068 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r-- | app/views/news/show.html.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb index c188d2e2c..008a07567 100644 --- a/app/views/news/show.html.erb +++ b/app/views/news/show.html.erb @@ -36,8 +36,10 @@ <% @comments.each do |comment| %> <% next if comment.new_record? %> <div class="contextual"> - <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, - :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %> + <%= link_to_if_authorized '', {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, + :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, + :title => l(:button_delete), + :class => 'icon-only icon-del' %> </div> <h4><%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %></h4> <%= textilizable(comment.comments) %> |