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
This commit is contained in:
parent
2a3fe1604a
commit
32ed656789
|
@ -1,6 +1,8 @@
|
|||
<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)) -%>
|
||||
|
|
Loading…
Reference in New Issue