Commit 43b70623 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray Committed by Lin Jen-Shin

Merge branch 'project-group-icon-links' into 'master'

Fixed project & group icons not being clickable

Closes #31073

See merge request !10778
parent 37365274
...@@ -596,6 +596,10 @@ pre.light-well { ...@@ -596,6 +596,10 @@ pre.light-well {
.avatar-container { .avatar-container {
align-self: flex-start; align-self: flex-start;
> a {
width: 100%;
}
} }
.project-details { .project-details {
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
= visibility_level_icon(group.visibility_level, fw: false) = visibility_level_icon(group.visibility_level, fw: false)
.avatar-container.s40 .avatar-container.s40
= image_tag group_icon(group), class: "avatar s40 hidden-xs" = link_to group do
= image_tag group_icon(group), class: "avatar s40 hidden-xs"
.title .title
= link_to group_name, group, class: 'group-name' = link_to group_name, group, class: 'group-name'
......
...@@ -12,10 +12,11 @@ ...@@ -12,10 +12,11 @@
= cache(cache_key) do = cache(cache_key) do
- if avatar - if avatar
.avatar-container.s40 .avatar-container.s40
- if use_creator_avatar = link_to project_path(project), class: dom_class(project) do
= image_tag avatar_icon(project.creator.email, 40), class: "avatar s40", alt:'' - if use_creator_avatar
- else = image_tag avatar_icon(project.creator.email, 40), class: "avatar s40", alt:''
= project_icon(project, alt: '', class: 'avatar project-avatar s40') - else
= project_icon(project, alt: '', class: 'avatar project-avatar s40')
.project-details .project-details
%h3.prepend-top-0.append-bottom-0 %h3.prepend-top-0.append-bottom-0
= link_to project_path(project), class: dom_class(project) do = link_to project_path(project), class: dom_class(project) do
......
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