Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
e8e91643eeb8
Commit
833a0f4d
authored
Jan 14, 2016
by
Rubén Dávila
Browse files
Add icon for private forks notice. #2406
parent
0903b3657d2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/pages/projects.scss
View file @
e8e91643
...
...
@@ -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
;
}
}
app/helpers/icons_helper.rb
View file @
e8e91643
...
...
@@ -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
)
...
...
app/views/projects/forks/index.html.haml
View file @
e8e91643
...
...
@@ -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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment