summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-02 11:15:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-02 11:15:54 +0000
commit9f76b4d2ef9f2a621e346d10719625f8f7c24231 (patch)
treec698dc7a11cf4af1782f279943c4acd4e1b41b57 /app
parenta9efe82117e2ef256632464b2e34c810d3de9b63 (diff)
downloadredmine-9f76b4d2ef9f2a621e346d10719625f8f7c24231.tar.gz
redmine-9f76b4d2ef9f2a621e346d10719625f8f7c24231.zip
enumerations/list redesign
git-svn-id: http://redmine.rubyforge.org/svn/trunk@139 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/enumerations/list.rhtml10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/views/enumerations/list.rhtml b/app/views/enumerations/list.rhtml
index 2d5726bcf..6c448fdc7 100644
--- a/app/views/enumerations/list.rhtml
+++ b/app/views/enumerations/list.rhtml
@@ -1,21 +1,19 @@
<h2><%=l(:label_enumerations)%></h2>
-
+&nbsp;
<% Enumeration::OPTIONS.each do |option, name| %>
<% if params[:opt]==option %>
- <p><%= image_tag 'dir_open' %> <b><%= l(name) %></b></p>
+ <h3><%= l(name) %></h3>
<ul>
<% for value in Enumeration.find(:all, :conditions => ["opt = ?", option]) %>
<li><%= link_to value.name, :action => 'edit', :id => value %></li>
<% end %>
</ul>
- <ul>
- <li><%= link_to ('&#187; ' + l(:label_new)), :action => 'new', :opt => option %></li>
- </ul>
+ <p><%= link_to l(:label_enumeration_new), { :action => 'new', :opt => option }, :class => "pic picAdd" %></p>&nbsp;
<% else %>
- <p><%= image_tag 'dir' %> <%= link_to l(name), :opt => option %></p>
+ <h3><%= link_to l(name), :opt => option %></h3>
<% end %>
<% end %> \ No newline at end of file