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 {
li .fas {
.fas-custom {
float: right;
font-size: 11pt;
}
li:not(.active) {
color: $color-silver-chalice;
.active {
.fas-custom {
fill: $color-white;
}
}
}

View file

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

View file

@ -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>