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/settings | |
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/settings')
-rw-r--r-- | app/views/settings/_repositories.html.erb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/app/views/settings/_repositories.html.erb b/app/views/settings/_repositories.html.erb index b3c5b1b16..bb7a23704 100644 --- a/app/views/settings/_repositories.html.erb +++ b/app/views/settings/_repositories.html.erb @@ -23,12 +23,7 @@ </td> <td> <% if enabled %> - <%= - image_tag( - (scm_class.scm_available ? 'true.png' : 'exclamation.png'), - :style => "vertical-align:bottom;" - ) - %> + <span class="icon <%= (scm_class.scm_available ? 'icon-ok' : 'icon-error') %>"></span> <%= scm_class.scm_command %> <% end %> </td> @@ -124,7 +119,8 @@ ) %> </td> <td class="buttons"> - <%= link_to(image_tag('delete.png'), '#', :class => 'delete-commit-keywords') %> + <%= link_to('', '#', + :class => 'delete-commit-keywords icon-only icon-del') %> </td> </tr> <% end %> @@ -133,7 +129,10 @@ <td><em class="info"><%= l(:text_comma_separated) %></em></td> <td></td> <td></td> - <td class="buttons"><%= link_to(image_tag('add.png'), '#', :class => 'add-commit-keywords') %></td> + <td class="buttons"> + <%= link_to('', '#', + :class => 'add-commit-keywords icon-only icon-add') %> + </td> </tr> </tbody> </table> |