mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Add new icons also to the inventories list in navigation
This commit is contained in:
parent
7d4941015f
commit
26bd81621f
3 changed files with 11 additions and 5 deletions
|
@ -109,12 +109,13 @@
|
|||
}
|
||||
|
||||
#repo-tree {
|
||||
li .fas {
|
||||
.fas-custom {
|
||||
float: right;
|
||||
font-size: 11pt;
|
||||
}
|
||||
|
||||
li:not(.active) {
|
||||
color: $color-silver-chalice;
|
||||
.active {
|
||||
.fas-custom {
|
||||
fill: $color-white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
width: 18px;
|
||||
|
||||
path {
|
||||
cursor: auto;
|
||||
fill: inherit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,11 @@
|
|||
<% end %>
|
||||
|
||||
<% if repository.shared_with?(current_team) %>
|
||||
<i class="fas fa-user-friends"></i>
|
||||
<% if repository.team_repositories.where(team: current_team).take[:permission_level] == 'write' %>
|
||||
<%= draw_custom_icon('shared-edit') %>
|
||||
<% elsif repository.team_repositories.where(team: current_team).take[:permission_level] == 'read' %>
|
||||
<%= draw_custom_icon('shared-read') %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</span>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue