diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-09-12 09:13:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-09-12 09:13:13 +0000 |
commit | ede9960444ed7c93e1561f004ee8682a0458f295 (patch) | |
tree | 95d8f61844d3f2c62e86d40add17b5b5f4120781 /app/views/settings | |
parent | d4ed5ec30b470ecb48b1bd9b36a66d837d33461b (diff) | |
download | redmine-ede9960444ed7c93e1561f004ee8682a0458f295.tar.gz redmine-ede9960444ed7c93e1561f004ee8682a0458f295.zip |
Refactoring of tabs rendering.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2871 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings')
-rw-r--r-- | app/views/settings/edit.rhtml | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/app/views/settings/edit.rhtml b/app/views/settings/edit.rhtml index c99a13960..de64e3bb2 100644 --- a/app/views/settings/edit.rhtml +++ b/app/views/settings/edit.rhtml @@ -1,23 +1,5 @@ <h2><%= l(:label_settings) %></h2> -<% selected_tab = params[:tab] ? params[:tab].to_s : administration_settings_tabs.first[:name] %> - -<div class="tabs"> -<ul> -<% administration_settings_tabs.each do |tab| -%> - <li><%= link_to l(tab[:label]), { :tab => tab[:name] }, - :id => "tab-#{tab[:name]}", - :class => (tab[:name] != selected_tab ? nil : 'selected'), - :onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li> -<% end -%> -</ul> -</div> - -<% administration_settings_tabs.each do |tab| -%> -<%= content_tag('div', render(:partial => tab[:partial]), - :id => "tab-content-#{tab[:name]}", - :style => (tab[:name] != selected_tab ? 'display:none' : nil), - :class => 'tab-content') %> -<% end -%> +<%= render_tabs administration_settings_tabs %> <% html_title(l(:label_settings), l(:label_administration)) -%> |