Skip to content
Snippets Groups Projects
Commit 32ed6567 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

Fixed: an error is raised when no tab is available on project settings (#3179).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2674 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2a3fe160
No related branches found
No related tags found
No related merge requests found
<h2><%=l(:label_settings)%></h2>
<% tabs = project_settings_tabs %>
<% if tabs.any? %>
<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
<div class="tabs">
......@@ -20,5 +22,8 @@
:style => (tab[:name] != selected_tab ? 'display:none' : nil),
:class => 'tab-content') %>
<% end -%>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>
<% html_title(l(:label_settings)) -%>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment