Commit f228e17d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add project-avatar and group-avatar css classes

parent 5bf33f97
......@@ -15,7 +15,7 @@
&.s24 { margin-right: 4px; }
}
&.avatar-tile {
&.group-avatar, &.project-avatar, &.avatar-tile {
@include border-radius(0px);
}
......
......@@ -75,9 +75,6 @@
}
}
}
.project-avatar {
float: left;
}
.project-description {
overflow: hidden;
......
......@@ -32,7 +32,6 @@
.avatar {
width: 70px;
height: 70px;
@include border-radius(0px);
}
.identicon {
......
= link_to project_path(project), class: dom_class(project) do
.dash-project-avatar
= project_icon(project.to_param, alt: '', class: 'avatar s40')
= project_icon(project.to_param, alt: '', class: 'avatar project-avatar s40')
.dash-project-access-icon
= visibility_level_icon(project.visibility_level)
%span.str-truncated
......
......@@ -11,8 +11,8 @@
- @projects.each do |project|
%li.my-project-row
%h4.project-title
.project-avatar
= project_icon(project.to_param, alt: '', class: 'avatar s60')
.pull-left
= project_icon(project.to_param, alt: '', class: 'avatar project-avatar s60')
.project-access-icon
= visibility_level_icon(project.visibility_level)
= link_to project_path(project), class: dom_class(project) do
......
......@@ -12,7 +12,7 @@
.form-group
.col-sm-2
.col-sm-10
= image_tag group_icon(@group.to_param), alt: '', class: 'avatar s160'
= image_tag group_icon(@group.to_param), alt: '', class: 'avatar group-avatar s160'
%p.light
- if @group.avatar?
You can change your group avatar here
......
.dashboard
%div
= image_tag group_icon(@group.path), class: "avatar avatar-tile s90"
= image_tag group_icon(@group.path), class: "avatar group-avatar s90"
.clearfix
%h2
= @group.name
......
- empty_repo = @project.empty_repo?
.project-home-panel{:class => ("empty-project" if empty_repo)}
.project-identicon-holder
= project_icon(@project.to_param, alt: '', class: 'avatar')
= project_icon(@project.to_param, alt: '', class: 'avatar project-avatar')
.project-home-row
.project-home-desc
- if @project.description.present?
......
......@@ -78,7 +78,7 @@
.col-sm-2
.col-sm-10
- if @project.avatar?
= project_icon(@project.to_param, alt: '', class: 'avatar s160')
= project_icon(@project.to_param, alt: '', class: 'avatar project-avatar s160')
%p.light
- if @project.avatar_in_git
Project avatar in repository: #{ @project.avatar_in_git }
......
.clearfix
- groups.each do |group|
= link_to group, class: 'profile-groups-avatars inline', title: group.name do
= image_tag group_icon(group.path), class: 'avatar avatar-tile s40'
= image_tag group_icon(group.path), class: 'avatar group-avatar s40'
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