Add new icons also to the inventories list in navigation

This commit is contained in:
Mojca Lorber 2019-07-25 15:11:38 +02:00 committed by Urban Rotnik
parent 7d4941015f
commit 26bd81621f
3 changed files with 11 additions and 5 deletions

View file

@ -109,12 +109,13 @@
} }
#repo-tree { #repo-tree {
li .fas { .fas-custom {
float: right; float: right;
font-size: 11pt;
} }
li:not(.active) { .active {
color: $color-silver-chalice; .fas-custom {
fill: $color-white;
}
} }
} }

View file

@ -11,6 +11,7 @@
width: 18px; width: 18px;
path { path {
cursor: auto;
fill: inherit; fill: inherit;
} }
} }

View file

@ -14,7 +14,11 @@
<% end %> <% end %>
<% if repository.shared_with?(current_team) %> <% 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 %> <% end %>
</span> </span>
</li> </li>