diff --git a/endpoints/api.py b/endpoints/api.py index c858086cf..8d00e3c2d 100644 --- a/endpoints/api.py +++ b/endpoints/api.py @@ -7,6 +7,7 @@ from functools import wraps from data import model from app import app from util.names import parse_repository_name +from util.gravatar import compute_hash from auth.permissions import (ReadRepositoryPermission, ModifyRepositoryPermission, AdministerRepositoryPermission) @@ -29,6 +30,7 @@ def get_logged_in_user(): 'anonymous': False, 'username': user.username, 'email': user.email, + 'gravatar': compute_hash(user.email), }) diff --git a/static/css/quay.css b/static/css/quay.css index 7748bd8d2..e32971211 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -193,4 +193,13 @@ p.editable:hover i { .repo .images { margin: 10px; +} + +.navbar-nav > li > .user-dropdown { + padding-top: 9px; + padding-bottom: 9px; +} + +.user-dropdown > img { + padding-right: 6px; } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 17b84f58a..1f3eacc86 100644 --- a/templates/index.html +++ b/templates/index.html @@ -58,7 +58,11 @@