mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 20:23:14 +08:00
Merge branch 'master' into SCI-3806-shared-status-dropdown
This commit is contained in:
commit
0058198bb5
5 changed files with 22 additions and 5 deletions
|
@ -145,7 +145,9 @@
|
|||
if (data.warnings) {
|
||||
alert(data.warnings);
|
||||
}
|
||||
$('.repository-share-status').toggleClass('hidden', !data.status);
|
||||
$(`#slide-panel li.active .repository-share-status,
|
||||
#repository-toolbar .repository-share-status
|
||||
`).toggleClass('hidden', !data.status);
|
||||
$('.share-repo-modal').modal('hide');
|
||||
},
|
||||
error: function(data) {
|
||||
|
|
|
@ -210,3 +210,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#repository_row-info-table {
|
||||
.fas {
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -322,6 +322,7 @@ a[data-toggle="tooltip"] {
|
|||
.nav-name {
|
||||
height: 54px;
|
||||
line-height: 44px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
padding: 5px 0;
|
||||
text-overflow: ellipsis;
|
||||
|
|
|
@ -98,7 +98,7 @@ module Repositories
|
|||
return false
|
||||
end
|
||||
|
||||
if can_manage_repository?(@user, @repository)
|
||||
if can_share_repository?(@user, @repository)
|
||||
true
|
||||
else
|
||||
@errors[:user_without_permissions] =
|
||||
|
|
|
@ -50,15 +50,23 @@
|
|||
<tr role="row">
|
||||
<td class="sorting_1">
|
||||
<ol class='breadcrumb'>
|
||||
<li><span class='fas fa-folder'></span>
|
||||
<li>
|
||||
<span class='fas fa-users'></span>
|
||||
<%= render partial: "search/results/partials/team_text.html.erb",
|
||||
locals: { team: element.my_module.experiment.project.team } %>
|
||||
</li>
|
||||
<li>
|
||||
<%= image_tag 'icon_small/project.svg' %>
|
||||
<%= render partial: 'search/results/partials/project_text.html.erb',
|
||||
locals: { project: element.my_module.experiment.project } %>
|
||||
</li>
|
||||
<li><i class='fas fa-flask'></i>
|
||||
<li>
|
||||
<%= image_tag 'icon_small/experiment.svg' %>
|
||||
<%= render partial: 'search/results/partials/experiment_text.html.erb',
|
||||
locals: { experiment: element.my_module.experiment } %>
|
||||
</li>
|
||||
<li><span class='fas fa-credit-card'></span>
|
||||
<li>
|
||||
<%= image_tag 'icon_small/task.svg' %>
|
||||
<%= render partial: 'search/results/partials/my_module_text.html.erb',
|
||||
locals: { my_module: element.my_module,
|
||||
link_to_page: :repositories,
|
||||
|
|
Loading…
Reference in a new issue