mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +08:00
Added dropdown GUI for editing repository. [SCI-1269]
This commit is contained in:
parent
fcc3995049
commit
b92a760a5c
2 changed files with 40 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue