Added dropdown GUI for editing repository. [SCI-1269]

This commit is contained in:
Matej Zrimšek 2017-05-29 13:35:44 +02:00
parent fcc3995049
commit b92a760a5c
2 changed files with 40 additions and 0 deletions

View file

@ -21,6 +21,41 @@
<% @repositories.each.with_index do |repo, i| %>
<div class="tab-pane tab-pane-settings <%= 'active' if i == 0 %>" id="custom_repo_<%= repo.id %>">
<!-- Tab Content -->
<div id="repository-toolbar">
<div class="dropdown text-right">
<div class="btn btn-default btn-xs"
type="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="true">
<span class="glyphicon glyphicon-cog"></span>
<span class="caret"></span>
</div>
<ul class="dropdown-menu pull-right">
<li class="dropdown-header">
<%= t("repositories.index.options_dropdown.header") %>
</li>
<li>
<a href="#">
<%= t("repositories.index.options_dropdown.rename") %>
</a>
</li>
<li>
<a href="#">
<%= t("repositories.index.options_dropdown.copy") %>
</a>
</li>
<li role="separator" class="divider"></li>
<li class=>
<a href="#">
<%= t("repositories.index.options_dropdown.delete") %>
</a>
</li>
</ul>
</div>
</div>
</div>
<% end %>
</div>

View file

@ -156,6 +156,11 @@ en:
no_teams:
title: "Your dashboard is empty!"
text: "It seems you're not a member of any team. See team management to sort it out."
options_dropdown:
header: "Edit repository"
rename: "Rename"
copy: "Copy"
delete: "Delete"
nav:
breadcrumbs:
repositories: "Repositories"