Improve project icons for dashboard
This commit is contained in:
parent
c0acb28c4e
commit
2bd70b6a01
5 changed files with 18 additions and 7 deletions
|
@ -97,7 +97,17 @@
|
||||||
|
|
||||||
.dash-project-avatar {
|
.dash-project-avatar {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
|
.avatar {
|
||||||
|
margin-top: -8px;
|
||||||
|
margin-left: -15px;
|
||||||
|
@include border-radius(0px);
|
||||||
|
}
|
||||||
|
.identicon {
|
||||||
|
line-height: 40px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash-project-access-icon {
|
.dash-project-access-icon {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
- groups.each do |group|
|
- groups.each do |group|
|
||||||
%li.group-row
|
%li.group-row
|
||||||
= link_to group_path(id: group.path), class: dom_class(group) do
|
= link_to group_path(id: group.path), class: dom_class(group) do
|
||||||
= image_tag group_icon(group.path), class: "avatar s24"
|
.dash-project-avatar
|
||||||
|
= image_tag group_icon(group.path), class: "avatar s40"
|
||||||
%span.group-name.filter-title
|
%span.group-name.filter-title
|
||||||
= truncate(group.name, length: 35)
|
= truncate(group.name, length: 35)
|
||||||
%span.arrow
|
%span.arrow
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
= link_to project_path(project), class: dom_class(project) do
|
= link_to project_path(project), class: dom_class(project) do
|
||||||
|
.dash-project-avatar
|
||||||
|
= project_icon(project.to_param, alt: '', class: 'avatar s40')
|
||||||
.dash-project-access-icon
|
.dash-project-access-icon
|
||||||
= visibility_level_icon(project.visibility_level)
|
= visibility_level_icon(project.visibility_level)
|
||||||
.dash-project-avatar
|
|
||||||
= project_icon(project.to_param, alt: '', class: 'avatar s24')
|
|
||||||
%span.str-truncated
|
%span.str-truncated
|
||||||
%span.namespace-name
|
%span.namespace-name
|
||||||
- if project.namespace
|
- if project.namespace
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
- projects.each do |project|
|
- projects.each do |project|
|
||||||
%li.project-row
|
%li.project-row
|
||||||
= link_to project_path(project), class: dom_class(project) do
|
= link_to project_path(project), class: dom_class(project) do
|
||||||
|
.dash-project-avatar
|
||||||
|
= project_icon(project.to_param, alt: '', class: 'avatar s40')
|
||||||
.dash-project-access-icon
|
.dash-project-access-icon
|
||||||
= visibility_level_icon(project.visibility_level)
|
= visibility_level_icon(project.visibility_level)
|
||||||
.dash-project-avatar
|
|
||||||
= project_icon(project.to_param, alt: '', class: 'avatar s24')
|
|
||||||
%span.str-truncated
|
%span.str-truncated
|
||||||
%span.project-name
|
%span.project-name
|
||||||
= project.name
|
= project.name
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.clearfix
|
.clearfix
|
||||||
- groups.each do |group|
|
- groups.each do |group|
|
||||||
= link_to group, class: 'profile-groups-avatars', title: group.name do
|
= link_to group, class: 'profile-groups-avatars inline', title: group.name do
|
||||||
= image_tag group_icon(group.path), class: 'avatar avatar-inline s40'
|
= image_tag group_icon(group.path), class: 'avatar avatar-tile s40'
|
||||||
|
|
Loading…
Reference in a new issue