diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/info.html.erb | 3 | ||||
-rw-r--r-- | app/views/admin/plugins.html.erb | 4 | ||||
-rw-r--r-- | app/views/attachments/_links.html.erb | 26 | ||||
-rw-r--r-- | app/views/issues/_attributes.html.erb | 12 | ||||
-rw-r--r-- | app/views/issues/_relations.html.erb | 6 | ||||
-rw-r--r-- | app/views/messages/show.html.erb | 16 | ||||
-rw-r--r-- | app/views/my/blocks/_timelog.html.erb | 13 | ||||
-rw-r--r-- | app/views/news/show.html.erb | 6 | ||||
-rw-r--r-- | app/views/reports/issue_report.html.erb | 35 | ||||
-rw-r--r-- | app/views/repositories/_related_issues.html.erb | 6 | ||||
-rw-r--r-- | app/views/roles/permissions.html.erb | 12 | ||||
-rw-r--r-- | app/views/settings/_repositories.html.erb | 15 | ||||
-rw-r--r-- | app/views/timelog/_list.html.erb | 14 | ||||
-rw-r--r-- | app/views/trackers/fields.html.erb | 15 | ||||
-rw-r--r-- | app/views/workflows/_form.html.erb | 15 | ||||
-rw-r--r-- | app/views/workflows/edit.html.erb | 4 | ||||
-rw-r--r-- | app/views/workflows/index.html.erb | 4 | ||||
-rw-r--r-- | app/views/workflows/permissions.html.erb | 4 |
18 files changed, 131 insertions, 79 deletions
diff --git a/app/views/admin/info.html.erb b/app/views/admin/info.html.erb index 14d33bab0..2be1d28fd 100644 --- a/app/views/admin/info.html.erb +++ b/app/views/admin/info.html.erb @@ -6,8 +6,7 @@ <% @checklist.each do |label, result| %> <tr class="<%= cycle 'odd', 'even' %>"> <td class="name"><%= label.is_a?(Symbol) ? l(label) : label %></td> - <td class="tick"><%= image_tag((result ? 'true.png' : 'exclamation.png'), - :style => "vertical-align:bottom;") %></td> + <td class="tick"><span class="icon-only <%= (result ? 'icon-ok' : 'icon-error') %>"></span></td> </tr> <% end %> </table> diff --git a/app/views/admin/plugins.html.erb b/app/views/admin/plugins.html.erb index 47c1dfade..020dbc818 100644 --- a/app/views/admin/plugins.html.erb +++ b/app/views/admin/plugins.html.erb @@ -36,7 +36,7 @@ $(document).ready(function(){ $("table.plugins td.version span").addClass("unknown"); $.each(data, function(plugin_id, plugin_data){ var s = $("tr#plugin-"+plugin_id+" td.version span"); - s.removeClass("icon-checked icon-warning unknown"); + s.removeClass("icon-ok icon-warning unknown"); if (plugin_data.url) { if (s.parent("a").length>0) { s.unwrap(); @@ -45,7 +45,7 @@ $(document).ready(function(){ s.wrap($("<a></a>").attr("href", plugin_data.url).attr("target", "_blank")); } if (plugin_data.c == s.text()) { - s.addClass("icon-checked"); + s.addClass("icon-ok"); } else if (plugin_data.c) { s.addClass("icon-warning"); s.attr("title", "<%= escape_javascript l(:label_latest_compatible_version) %>: "+plugin_data.c); diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb index 0804b8002..53324c221 100644 --- a/app/views/attachments/_links.html.erb +++ b/app/views/attachments/_links.html.erb @@ -1,24 +1,28 @@ <div class="attachments"> <div class="contextual"> - <%= link_to image_tag('edit.png'), - container_attachments_edit_path(container), - :title => l(:label_edit_attachments) if options[:editable] %> + <%= link_to('', + container_attachments_edit_path(container), + :title => l(:label_edit_attachments), + :class => 'icon-only icon-edit' + ) if options[:editable] %> </div> <% for attachment in attachments %> <p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%> <% if attachment.is_text? %> - <%= link_to image_tag('magnifier.png'), - :controller => 'attachments', :action => 'show', - :id => attachment, :filename => attachment.filename %> + <%= link_to '', + { :controller => 'attachments', :action => 'show', + :id => attachment, :filename => attachment.filename }, + :class => 'icon icon-magnifier', + :title => l(:button_view) %> <% end %> <%= " - #{attachment.description}" unless attachment.description.blank? %> <span class="size">(<%= number_to_human_size attachment.filesize %>)</span> <% if options[:deletable] %> - <%= link_to image_tag('delete.png'), attachment_path(attachment), - :data => {:confirm => l(:text_are_you_sure)}, - :method => :delete, - :class => 'delete', - :title => l(:button_delete) %> + <%= link_to '', attachment_path(attachment), + :data => {:confirm => l(:text_are_you_sure)}, + :method => :delete, + :class => 'delete icon-only icon-del', + :title => l(:button_delete) %> <% end %> <% if options[:author] %> <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span> diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index 07b863cbe..f0a989063 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -20,22 +20,26 @@ <% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %> <p><%= f.select :category_id, (@issue.project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true, :required => @issue.required_attribute?('category_id') %> -<%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'), +<%= link_to('', new_project_issue_category_path(@issue.project), :remote => true, :method => 'get', :title => l(:label_issue_category_new), - :tabindex => 200) if User.current.allowed_to?(:manage_categories, @issue.project) %></p> + :tabindex => 200, + :class => 'icon-only icon-add' + ) if User.current.allowed_to?(:manage_categories, @issue.project) %></p> <% end %> <% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %> <p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true, :required => @issue.required_attribute?('fixed_version_id') %> -<%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'), +<%= link_to('', new_project_version_path(@issue.project), :remote => true, :method => 'get', :title => l(:label_version_new), - :tabindex => 200) if User.current.allowed_to?(:manage_versions, @issue.project) %> + :tabindex => 200, + :class => 'icon-only icon-add' + ) if User.current.allowed_to?(:manage_versions, @issue.project) %> </p> <% end %> </div> diff --git a/app/views/issues/_relations.html.erb b/app/views/issues/_relations.html.erb index bfbd1f28c..b79e74489 100644 --- a/app/views/issues/_relations.html.erb +++ b/app/views/issues/_relations.html.erb @@ -19,12 +19,14 @@ <td class="status"><%= other_issue.status.name %></td> <td class="start_date"><%= format_date(other_issue.start_date) %></td> <td class="due_date"><%= format_date(other_issue.due_date) %></td> - <td class="buttons"><%= link_to image_tag('link_break.png'), + <td class="buttons"><%= link_to('', relation_path(relation), :remote => true, :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, - :title => l(:label_relation_delete) if User.current.allowed_to?(:manage_issue_relations, @project) %></td> + :title => l(:label_relation_delete), + :class => 'icon-only icon-link-break' + ) if User.current.allowed_to?(:manage_issue_relations, @project) %></td> </tr> <% end %> </table> diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 23e6f0285..60c7d5f99 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -39,22 +39,26 @@ <div class="message reply" id="<%= "message-#{message.id}" %>"> <div class="contextual"> <%= link_to( - image_tag('comment.png'), + '', {:action => 'quote', :id => message}, :remote => true, :method => 'get', - :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %> + :title => l(:button_quote), + :class => 'icon icon-comment' + ) if !@topic.locked? && authorize_for('messages', 'reply') %> <%= link_to( - image_tag('edit.png'), + '', {:action => 'edit', :id => message}, - :title => l(:button_edit) + :title => l(:button_edit), + :class => 'icon icon-edit' ) if message.editable_by?(User.current) %> <%= link_to( - image_tag('delete.png'), + '', {:action => 'destroy', :id => message}, :method => :post, :data => {:confirm => l(:text_are_you_sure)}, - :title => l(:button_delete) + :title => l(:button_delete), + :class => 'icon icon-del' ) if message.destroyable_by?(User.current) %> </div> <h4> diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb index 747039c85..76b974e52 100644 --- a/app/views/my/blocks/_timelog.html.erb +++ b/app/views/my/blocks/_timelog.html.erb @@ -42,12 +42,13 @@ entries_by_day = entries.group_by(&:spent_on) <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td> <td class="buttons"> <% if entry.editable_by?(@user) -%> - <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry}, - :title => l(:button_edit) %> - <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry}, - :data => {:confirm => l(:text_are_you_sure)}, - :method => :delete, - :title => l(:button_delete) %> + <%= link_to '', {:controller => 'timelog', :action => 'edit', :id => entry}, + :title => l(:button_edit), + :class => 'icon-only icon-edit' %> + <%= link_to '', {:controller => 'timelog', :action => 'destroy', :id => entry}, + :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, + :title => l(:button_delete), + :class => 'icon-only icon-del' %> <% end -%> </td> </tr> 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) %> diff --git a/app/views/reports/issue_report.html.erb b/app/views/reports/issue_report.html.erb index d40841dae..1cb3ccdd3 100644 --- a/app/views/reports/issue_report.html.erb +++ b/app/views/reports/issue_report.html.erb @@ -1,31 +1,52 @@ <h2><%=l(:label_report_plural)%></h2> <div class="splitcontentleft"> -<h3><%=l(:field_tracker)%> <%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'tracker') %></h3> +<h3> + <%=l(:field_tracker)%> + <%= link_to '', project_issues_report_details_path(@project, :detail => 'tracker'), :class => 'icon-only icon-zoom-in' %> +</h3> <%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %> <br /> -<h3><%=l(:field_priority)%> <%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'priority') %></h3> +<h3> + <%=l(:field_priority)%> + <%= link_to '', project_issues_report_details_path(@project, :detail => 'priority'), :class => 'icon-only icon-zoom-in' %> +</h3> <%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %> <br /> -<h3><%=l(:field_assigned_to)%> <%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'assigned_to') %></h3> +<h3> + <%=l(:field_assigned_to)%> + <%= link_to '', project_issues_report_details_path(@project, :detail => 'assigned_to'), :class => 'icon-only icon-zoom-in' %> +</h3> <%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %> <br /> -<h3><%=l(:field_author)%> <%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'author') %></h3> +<h3> + <%=l(:field_author)%> + <%= link_to '', project_issues_report_details_path(@project, :detail => 'author'), :class => 'icon-only icon-zoom-in' %> +</h3> <%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %> <br /> <%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %> </div> <div class="splitcontentright"> -<h3><%=l(:field_version)%> <%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'version') %></h3> +<h3> + <%=l(:field_version)%> + <%= link_to '', project_issues_report_details_path(@project, :detail => 'version'), :class => 'icon-only icon-zoom-in' %> +</h3> <%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %> <br /> <% if @project.children.any? %> -<h3><%=l(:field_subproject)%> <%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'subproject') %></h3> +<h3> + <%=l(:field_subproject)%> + <%= link_to '', project_issues_report_details_path(@project, :detail => 'subproject'), :class => 'icon-only icon-zoom-in' %> +</h3> <%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %> <br /> <% end %> -<h3><%=l(:field_category)%> <%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'category') %></h3> +<h3> + <%=l(:field_category)%> + <%= link_to '', project_issues_report_details_path(@project, :detail => 'category'), :class => 'icon-only icon-zoom-in' %> +</h3> <%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %> <br /> <%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %> diff --git a/app/views/repositories/_related_issues.html.erb b/app/views/repositories/_related_issues.html.erb index 649cc70e8..ea4539120 100644 --- a/app/views/repositories/_related_issues.html.erb +++ b/app/views/repositories/_related_issues.html.erb @@ -11,14 +11,16 @@ <ul> <% @changeset.issues.visible.each do |issue| %> <li id="<%= "related-issue-#{issue.id}" %>"><%= link_to_issue issue %> - <%= link_to(image_tag('link_break.png'), + <%= link_to('', {:controller => 'repositories', :action => 'remove_related_issue', :id => @project, :repository_id => @repository.identifier_param, :rev => @changeset.identifier, :issue_id => issue}, :remote => true, :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, - :title => l(:label_relation_delete)) if manage_allowed %> + :title => l(:label_relation_delete), + :class => 'icon-only icon-link-break' + ) if manage_allowed %> </li> <% end %> </ul> diff --git a/app/views/roles/permissions.html.erb b/app/views/roles/permissions.html.erb index cea4bd9e6..b403cffe1 100644 --- a/app/views/roles/permissions.html.erb +++ b/app/views/roles/permissions.html.erb @@ -9,9 +9,11 @@ <th><%=l(:label_permissions)%></th> <% @roles.each do |role| %> <th> + <%= link_to_function('', + "toggleCheckboxesBySelector('input.role-#{role.id}')", + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", + :class => 'icon-only icon-checked') %> <%= content_tag(role.builtin? ? 'em' : 'span', role.name) %> - <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')", - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> </th> <% end %> </tr> @@ -33,8 +35,10 @@ <% perms_by_module[mod].each do |permission| %> <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>"> <td class="name"> - <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')", - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> + <%= link_to_function('', + "toggleCheckboxesBySelector('.permission-#{permission.name} input')", + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", + :class => 'icon-only icon-checked') %> <%= l_or_humanize(permission.name, :prefix => 'permission_') %> </td> <% @roles.each do |role| %> 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> diff --git a/app/views/timelog/_list.html.erb b/app/views/timelog/_list.html.erb index 7ec60cdbd..df497d47e 100644 --- a/app/views/timelog/_list.html.erb +++ b/app/views/timelog/_list.html.erb @@ -21,12 +21,14 @@ <%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %> <td class="buttons"> <% if entry.editable_by?(User.current) -%> - <%= link_to image_tag('edit.png'), edit_time_entry_path(entry), - :title => l(:button_edit) %> - <%= link_to image_tag('delete.png'), time_entry_path(entry), - :data => {:confirm => l(:text_are_you_sure)}, - :method => :delete, - :title => l(:button_delete) %> + <%= link_to '', edit_time_entry_path(entry), + :title => l(:button_edit), + :class => 'icon icon-edit' %> + <%= link_to '', time_entry_path(entry), + :data => {:confirm => l(:text_are_you_sure)}, + :method => :delete, + :title => l(:button_delete), + :class => 'icon-only icon-del' %> <% end -%> </td> </tr> 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| %> diff --git a/app/views/workflows/_form.html.erb b/app/views/workflows/_form.html.erb index 76f6fefe3..9fb2705e7 100644 --- a/app/views/workflows/_form.html.erb +++ b/app/views/workflows/_form.html.erb @@ -2,8 +2,9 @@ <thead> <tr> <th> - <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input')", - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> + <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input')", + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", + :class => 'icon-only icon-checked') %> <%=l(:label_current_status)%> </th> <th colspan="<%= @statuses.length %>"><%=l(:label_new_statuses_allowed)%></th> @@ -12,8 +13,9 @@ <td></td> <% for new_status in @statuses %> <td style="width:<%= 75 / @statuses.size %>%;"> - <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')", - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> + <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')", + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", + :class => 'icon-only icon-checked') %> <%= new_status.name %> </td> <% end %> @@ -24,8 +26,9 @@ <% next if old_status.nil? && name != 'always' %> <tr class="<%= cycle("odd", "even") %>"> <td class="name"> - <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')", - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> + <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')", + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", + :class => 'icon-only icon-checked') %> <%= old_status ? old_status.name : content_tag('em', l(:label_issue_new)) %> </td> diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erb index ab9f72b9f..3eac0a39a 100644 --- a/app/views/workflows/edit.html.erb +++ b/app/views/workflows/edit.html.erb @@ -16,12 +16,12 @@ <label><%=l(:label_role)%>: <%= options_for_workflow_select 'role_id[]', Role.sorted.select(&:consider_workflow?), @roles, :id => 'role_id', :class => 'expandable' %> </label> - <a href="#" data-expands="#role_id"><%= image_tag 'bullet_toggle_plus.png' %></a> + <a href="#" data-expands="#role_id"><span class="toggle-multiselect"></span></a> <label><%=l(:label_tracker)%>: <%= options_for_workflow_select 'tracker_id[]', Tracker.sorted, @trackers, :id => 'tracker_id', :class => 'expandable' %> </label> - <a href="#" data-expands="#tracker_id"><%= image_tag 'bullet_toggle_plus.png' %></a> + <a href="#" data-expands="#tracker_id"><span class="toggle-multiselect"></span></a> <%= submit_tag l(:button_edit), :name => nil %> diff --git a/app/views/workflows/index.html.erb b/app/views/workflows/index.html.erb index 3ee55d125..1a0780532 100644 --- a/app/views/workflows/index.html.erb +++ b/app/views/workflows/index.html.erb @@ -22,7 +22,9 @@ <% @roles.each do |role| -%> <% count = @workflow_counts[[tracker.id, role.id]] || 0 %> <td> - <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> + <%= link_to((count > 0 ? count : content_tag(:span, nil, :class => 'icon-only icon-not-ok')), + {:action => 'edit', :role_id => role, :tracker_id => tracker}, + :title => l(:button_edit)) %> </td> <% end -%> </tr> diff --git a/app/views/workflows/permissions.html.erb b/app/views/workflows/permissions.html.erb index 03740214d..3b8f84e41 100644 --- a/app/views/workflows/permissions.html.erb +++ b/app/views/workflows/permissions.html.erb @@ -16,12 +16,12 @@ <label><%=l(:label_role)%>: <%= options_for_workflow_select 'role_id[]', Role.sorted.select(&:consider_workflow?), @roles, :id => 'role_id', :class => 'expandable' %> </label> - <a href="#" data-expands="#role_id"><%= image_tag 'bullet_toggle_plus.png' %></a> + <a href="#" data-expands="#role_id"><span class="toggle-multiselect"></a> <label><%=l(:label_tracker)%>: <%= options_for_workflow_select 'tracker_id[]', Tracker.sorted, @trackers, :id => 'tracker_id', :class => 'expandable' %> </label> - <a href="#" data-expands="#tracker_id"><%= image_tag 'bullet_toggle_plus.png' %></a> + <a href="#" data-expands="#tracker_id"><span class="toggle-multiselect"></a> <%= submit_tag l(:button_edit), :name => nil %> |