Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
833a0f4d
Commit
833a0f4d
authored
Jan 14, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add icon for private forks notice. #2406
parent
40e1ad90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+13
-0
app/helpers/icons_helper.rb
app/helpers/icons_helper.rb
+1
-1
app/views/projects/forks/index.html.haml
app/views/projects/forks/index.html.haml
+2
-1
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
833a0f4d
...
...
@@ -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 @
833a0f4d
...
...
@@ -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 @
833a0f4d
...
...
@@ -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