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
Tatuya Kamada
gitlab-ce
Commits
78d7c508
Commit
78d7c508
authored
Jan 29, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use tile avatars for user/group show pages
parent
31245a40
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
app/assets/stylesheets/generic/avatar.scss
app/assets/stylesheets/generic/avatar.scss
+4
-0
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+1
-1
app/views/users/show.html.haml
app/views/users/show.html.haml
+1
-1
No files found.
app/assets/stylesheets/generic/avatar.scss
View file @
78d7c508
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
&
.s24
{
margin-right
:
4px
;
}
&
.s24
{
margin-right
:
4px
;
}
}
}
&
.avatar-tile
{
@include
border-radius
(
0px
);
}
&
.s16
{
width
:
16px
;
height
:
16px
;
margin-right
:
6px
;
}
&
.s16
{
width
:
16px
;
height
:
16px
;
margin-right
:
6px
;
}
&
.s24
{
width
:
24px
;
height
:
24px
;
margin-right
:
8px
;
}
&
.s24
{
width
:
24px
;
height
:
24px
;
margin-right
:
8px
;
}
&
.s26
{
width
:
26px
;
height
:
26px
;
margin-right
:
8px
;
}
&
.s26
{
width
:
26px
;
height
:
26px
;
margin-right
:
8px
;
}
...
...
app/views/groups/show.html.haml
View file @
78d7c508
.dashboard
.dashboard
%div
%div
=
image_tag
group_icon
(
@group
.
path
),
class:
"avatar s90"
=
image_tag
group_icon
(
@group
.
path
),
class:
"avatar
avatar-tile
s90"
.clearfix
.clearfix
%h2
%h2
=
@group
.
name
=
@group
.
name
...
...
app/views/users/show.html.haml
View file @
78d7c508
.row
.row
.col-md-8
.col-md-8
%h3
.page-title
%h3
.page-title
=
image_tag
avatar_icon
(
@user
.
email
,
90
),
class:
"avatar s90"
,
alt:
''
=
image_tag
avatar_icon
(
@user
.
email
,
90
),
class:
"avatar
avatar-tile
s90"
,
alt:
''
=
@user
.
name
=
@user
.
name
-
if
@user
==
current_user
-
if
@user
==
current_user
.pull-right
.pull-right
...
...
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