summaryrefslogtreecommitdiffstats
path: root/app/views/trackers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-20 08:50:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-20 08:50:39 +0000
commit7467c145c03c07f42c844d52956fa708bb7d05ee (patch)
tree29b5d09a64047cf076c3eca8257c087de3fea268 /app/views/trackers
parent2ec87100a91f88e8eb220225141a3873e9aaf933 (diff)
downloadredmine-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/trackers')
-rw-r--r--app/views/trackers/fields.html.erb15
1 files changed, 9 insertions, 6 deletions
diff --git a/app/views/trackers/fields.html.erb b/app/views/trackers/fields.html.erb
index 285a01b7e..b53f1fa0f 100644
--- a/app/views/trackers/fields.html.erb
+++ b/app/views/trackers/fields.html.erb
@@ -9,9 +9,10 @@
<th></th>
<% @trackers.each do |tracker| %>
<th>
+ <%= link_to_function('', "toggleCheckboxesBySelector('input.tracker-#{tracker.id}')",
+ :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
+ :class => 'icon-only icon-checked') %>
<%= tracker.name %>
- <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.tracker-#{tracker.id}')",
- :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
</th>
<% end %>
</tr>
@@ -26,8 +27,9 @@
<% Tracker::CORE_FIELDS.each do |field| %>
<tr class="<%= cycle("odd", "even") %>">
<td class="name">
- <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.core-field-#{field}')",
- :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
+ <%= link_to_function('', "toggleCheckboxesBySelector('input.core-field-#{field}')",
+ :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
+ :class => 'icon-only icon-checked') %>
<%= l("field_#{field}".sub(/_id$/, '')) %>
</td>
<% @trackers.each do |tracker| %>
@@ -48,8 +50,9 @@
<% @custom_fields.each do |field| %>
<tr class="<%= cycle("odd", "even") %>">
<td class="name">
- <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.custom-field-#{field.id}')",
- :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
+ <%= link_to_function('', "toggleCheckboxesBySelector('input.custom-field-#{field.id}')",
+ :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
+ :class => 'icon-only icon-checked') %>
<%= field.name %>
</td>
<% @trackers.each do |tracker| %>