Fix dropdown

This commit is contained in:
Luka Murn 2017-06-08 15:26:57 +02:00
parent be52af4e4f
commit c7c3c46d9d

View file

@ -49,17 +49,27 @@
<span class="glyphicon glyphicon-cog"></span>
<span class="caret"></span>
</div>
<% if can_edit_and_destroy_repository repo %>
<ul class="dropdown-menu pull-right">
<li class="dropdown-header">
<%= t("repositories.index.options_dropdown.header") %>
</li>
<ul class="dropdown-menu pull-right">
<li class="dropdown-header">
<%= t("repositories.index.options_dropdown.header") %>
</li>
<% if can_edit_and_destroy_repository repo %>
<li>
<%= link_to t('repositories.index.options_dropdown.rename'),
team_repository_rename_modal_path(repository_id: repo),
class: "rename-repo-option",
remote: true %>
</li>
<% end %>
<% if can_copy_repository(repo) %>
<li>
<%= link_to t('repositories.index.options_dropdown.copy'),
team_repository_copy_modal_path(repository_id: repo),
class: "copy-repo-option",
remote: true %>
</li>
<% end %>
<% if can_edit_and_destroy_repository repo %>
<li role="separator" class="divider"></li>
<li>
<%= link_to t('repositories.index.modal_delete.delete'),
@ -67,8 +77,8 @@
class: "delete-repo-option",
remote: true %>
</li>
</ul>
<% end %>
<% end %>
</ul>
</div>
</div>
<div class="tab-content-body"></div>