|
|
|
@ -154,15 +154,13 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<div class="generic-table--header-background"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<% if @project.versions.any? %> |
|
|
|
|
<div class="generic-table--action-buttons"> |
|
|
|
|
<%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project }, |
|
|
|
|
class: 'button -alt-highlight') do %> |
|
|
|
|
<i class="button--icon icon-add"></i> |
|
|
|
|
<span class="button--text"><%= l(:label_version_new) %></span> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
<div class="generic-table--action-buttons"> |
|
|
|
|
<%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project }, |
|
|
|
|
class: 'button -alt-highlight') do %> |
|
|
|
|
<i class="button--icon icon-add"></i> |
|
|
|
|
<span class="button--text"><%= l(:label_version_new) %></span> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<% else %> |
|
|
|
|
<%= no_results_box(action_url: new_project_version_path(@project), display_action: authorize_for('versions', 'new')) %> |
|
|
|
|
<% end %> |
|
|
|
|