diff --git a/app/views/projects/settings/_versions.html.erb b/app/views/projects/settings/_versions.html.erb index 719d6a1d45..47c59fa9f3 100644 --- a/app/views/projects/settings/_versions.html.erb +++ b/app/views/projects/settings/_versions.html.erb @@ -154,15 +154,13 @@ See doc/COPYRIGHT.rdoc for more details.
- <% if @project.versions.any? %> -
- <%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project }, - class: 'button -alt-highlight') do %> - - <%= l(:label_version_new) %> - <% end %> -
- <% end %> +
+ <%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project }, + class: 'button -alt-highlight') do %> + + <%= l(:label_version_new) %> + <% end %> +
<% else %> <%= no_results_box(action_url: new_project_version_path(@project), display_action: authorize_for('versions', 'new')) %> <% end %>