summaryrefslogtreecommitdiffstats
path: root/app/views/issues
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/issues
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/issues')
-rw-r--r--app/views/issues/_attributes.html.erb12
-rw-r--r--app/views/issues/_relations.html.erb6
2 files changed, 12 insertions, 6 deletions
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>