diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-03 11:30:02 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-03 13:37:35 +0200 |
commit | 96b84e4cb99df7703f52f472b40ce6328f433465 (patch) | |
tree | 73635fc2e711e8244668d7390df883471fca33bb /app/views | |
parent | 9cf47eb6ee0dbd7ab5ce40b76a8cdb22253ec907 (diff) | |
download | gitlab-ci-96b84e4cb99df7703f52f472b40ce6328f433465.tar.gz |
Use avatars from GitLab
Rewrite Gravatar URLs if needed in order to have images in different size
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/_nav.html.haml | 2 | ||||
-rw-r--r-- | app/views/user_sessions/show.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/_nav.html.haml b/app/views/layouts/_nav.html.haml index d571716..636485a 100644 --- a/app/views/layouts/_nav.html.haml +++ b/app/views/layouts/_nav.html.haml @@ -21,7 +21,7 @@ %li = link_to user_sessions_path do .profile-holder - = image_tag gravatar_icon(current_user.email, 64), alt: '' + = image_tag user_avatar_url(current_user, 64), class: 'avatar s32', alt: '' %span= current_user.name %li = link_to user_sessions_path, class: "logout", method: :delete do diff --git a/app/views/user_sessions/show.html.haml b/app/views/user_sessions/show.html.haml index 0faf2f7..43f64a4 100644 --- a/app/views/user_sessions/show.html.haml +++ b/app/views/user_sessions/show.html.haml @@ -1,4 +1,4 @@ -= image_tag gravatar_icon(current_user.email, 120), class: 'img-polaroid', alt: '' += image_tag user_avatar_url(current_user, 90), class: 'avatar avatar-inline avatar-tile s90', alt: '' %h3 Hi, #{@user.name} |