diff --git a/app/assets/stylesheets/partials/_tree_view.scss b/app/assets/stylesheets/partials/_tree_view.scss index 0fffdaad0..6bf210d54 100644 --- a/app/assets/stylesheets/partials/_tree_view.scss +++ b/app/assets/stylesheets/partials/_tree_view.scss @@ -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; + } } } diff --git a/app/assets/stylesheets/shared/icons.scss b/app/assets/stylesheets/shared/icons.scss index 456e03495..385095033 100644 --- a/app/assets/stylesheets/shared/icons.scss +++ b/app/assets/stylesheets/shared/icons.scss @@ -11,6 +11,7 @@ width: 18px; path { + cursor: auto; fill: inherit; } } diff --git a/app/views/repositories/_sidebar.html.erb b/app/views/repositories/_sidebar.html.erb index 071152383..8982c05d7 100644 --- a/app/views/repositories/_sidebar.html.erb +++ b/app/views/repositories/_sidebar.html.erb @@ -14,7 +14,11 @@ <% end %> <% if repository.shared_with?(current_team) %> - + <% 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 %>