提交 833a0f4d 编写于 作者: R Rubén Dávila

Add icon for private forks notice. #2406

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册