summaryrefslogtreecommitdiffstats
path: root/app/views/custom_fields
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-17 20:46:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-17 20:46:22 +0000
commitf741ca726978cfc352a0387f4694d7e29fb72803 (patch)
tree8e0bee09680a21deb14f04eac25ff43ed1626931 /app/views/custom_fields
parent388805ad58381a95bec3da8204c0784f0483c1a0 (diff)
downloadredmine-f741ca726978cfc352a0387f4694d7e29fb72803.tar.gz
redmine-f741ca726978cfc352a0387f4694d7e29fb72803.zip
Adds an helper for displaying the 'checked' image.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3600 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields')
-rw-r--r--app/views/custom_fields/_index.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/custom_fields/_index.rhtml b/app/views/custom_fields/_index.rhtml
index c70fbea48..8ef7dcba2 100644
--- a/app/views/custom_fields/_index.rhtml
+++ b/app/views/custom_fields/_index.rhtml
@@ -15,9 +15,9 @@
<tr class="<%= cycle("odd", "even") %>">
<td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td>
<td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td>
- <td align="center"><%= image_tag 'true.png' if custom_field.is_required? %></td>
+ <td align="center"><%= checked_image custom_field.is_required? %></td>
<% if tab[:name] == 'IssueCustomField' %>
- <td align="center"><%= image_tag 'true.png' if custom_field.is_for_all? %></td>
+ <td align="center"><%= checked_image custom_field.is_for_all? %></td>
<td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
<% end %>
<td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %></td>