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
Boxiang Sun
gitlab-ce
Commits
1b83fa71
Commit
1b83fa71
authored
Jul 07, 2016
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added custom no_avatar icon
parent
e4a90e39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+12
-1
app/views/projects/forks/new.html.haml
app/views/projects/forks/new.html.haml
+11
-2
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
1b83fa71
...
...
@@ -345,7 +345,18 @@ a.deploy-project-label {
background-color
:
#fcfdff
;
border-color
:
#e6f4ff
;
}
.no-avatar
{
width
:
100px
;
height
:
100px
;
background-color
:
$gray-light
;
border
:
1px
solid
$gray-dark
;
margin
:
0
auto
;
@include
border-radius
(
50%
);
i
{
font-size
:
100px
;
color
:
$gray-dark
;
}
}
a
{
display
:
block
;
width
:
100%
;
...
...
app/views/projects/forks/new.html.haml
View file @
1b83fa71
...
...
@@ -17,16 +17,25 @@
-
@namespaces
.
in_groups_of
(
6
,
false
)
do
|
group
|
.row
-
group
.
each
do
|
namespace
|
-
avatar
=
namespace_icon
(
namespace
,
100
)
-
if
fork
=
namespace
.
find_fork_of
(
@project
)
.fork-thumbnail.forked
=
link_to
project_path
(
fork
)
do
=
image_tag
namespace_icon
(
namespace
,
100
)
-
if
/no_((\w*)_)*avatar/
.
match
(
avatar
)
.no-avatar
=
icon
'question'
-
else
=
image_tag
avatar
.caption
=
namespace
.
human_name
-
else
.fork-thumbnail
=
link_to
namespace_project_forks_path
(
@project
.
namespace
,
@project
,
namespace_key:
namespace
.
id
),
method:
"POST"
do
=
image_tag
namespace_icon
(
namespace
,
100
)
-
if
/no_((\w*)_)*avatar/
.
match
(
avatar
)
.no-avatar
=
icon
'question'
-
else
=
image_tag
avatar
.caption
=
namespace
.
human_name
-
else
...
...
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