Commit 833a0f4d authored by Rubén Dávila's avatar Rubén Dávila

Add icon for private forks notice. #2406

parent 40e1ad90
......@@ -579,3 +579,16 @@ pre.light-well {
color: #E62958;
margin-top: 2px;
}
/*
* Forks list rendered on Project's forks page
*/
.private-forks-notice .private-fork-icon {
i.fa-circle {
color: #2AA056;
}
i.fa-lock {
color: #FFFFFF;
}
}
......@@ -7,7 +7,7 @@ module IconsHelper
# font-awesome-rails gem, but should we ever use a different icon pack in the
# future we won't have to change hundreds of method calls.
def icon(names, options = {})
fa_icon(names, options)
options.include?(:base) ? fa_stacked_icon(names, options) : fa_icon(names, options)
end
def spinner(text = nil, visible = false)
......
......@@ -51,7 +51,8 @@
forks: true, show_last_commit_as_description: true
- if protected_count > 0
%ul.projects-list
%ul.projects-list.private-forks-notice
%li.project-row
= icon('lock fw', base: 'circle', class: 'fa-lg private-fork-icon')
%strong= pluralize(protected_count, 'private fork')
%span you have no access to.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment