diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-02 11:15:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-02 11:15:54 +0000 |
commit | 9f76b4d2ef9f2a621e346d10719625f8f7c24231 (patch) | |
tree | c698dc7a11cf4af1782f279943c4acd4e1b41b57 /app | |
parent | a9efe82117e2ef256632464b2e34c810d3de9b63 (diff) | |
download | redmine-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.rhtml | 10 |
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> - + <% 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 ('» ' + l(:label_new)), :action => 'new', :opt => option %></li>
- </ul>
+ <p><%= link_to l(:label_enumeration_new), { :action => 'new', :opt => option }, :class => "pic picAdd" %></p>
<% 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 |