Commit 1b83fa71 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Added custom no_avatar icon

parent e4a90e39
...@@ -345,7 +345,18 @@ a.deploy-project-label { ...@@ -345,7 +345,18 @@ a.deploy-project-label {
background-color: #fcfdff; background-color: #fcfdff;
border-color: #e6f4ff; 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 { a {
display: block; display: block;
width: 100%; width: 100%;
......
...@@ -17,16 +17,25 @@ ...@@ -17,16 +17,25 @@
- @namespaces.in_groups_of(6, false) do |group| - @namespaces.in_groups_of(6, false) do |group|
.row .row
- group.each do |namespace| - group.each do |namespace|
- avatar = namespace_icon(namespace, 100)
- if fork = namespace.find_fork_of(@project) - if fork = namespace.find_fork_of(@project)
.fork-thumbnail.forked .fork-thumbnail.forked
= link_to project_path(fork) do = 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 .caption
= namespace.human_name = namespace.human_name
- else - else
.fork-thumbnail .fork-thumbnail
= link_to namespace_project_forks_path(@project.namespace, @project, namespace_key: namespace.id), method: "POST" do = 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 .caption
= namespace.human_name = namespace.human_name
- else - else
......
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