From 544cde185f9f55deab7b0738561e0b073e765c6a Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 1 Aug 2013 16:59:03 +0000 Subject: Add the Gravatar on the public profile page --- .../static/hyperkitty/css/hyperkitty-user.css | 21 ++++++++++++--------- hyperkitty/templates/user_profile.html | 2 +- hyperkitty/templates/user_public_profile.html | 8 +++++++- hyperkitty/views/accounts.py | 5 +++++ 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/hyperkitty/static/hyperkitty/css/hyperkitty-user.css b/hyperkitty/static/hyperkitty/css/hyperkitty-user.css index 23a8c2c..1f04c70 100644 --- a/hyperkitty/static/hyperkitty/css/hyperkitty-user.css +++ b/hyperkitty/static/hyperkitty/css/hyperkitty-user.css @@ -39,33 +39,33 @@ * User profile page */ -#user-profile { +.user-profile { padding: 0 2em; } -#user-profile h1 { +.user-profile h1 { margin-bottom: 1em; } -#user-profile h3 { +.user-profile h3 { margin-top: 2em; } -#user-profile form { +.user-profile form { float: left; } -#user-profile div.gravatar { +.user-profile div.gravatar { /*float: right;*/ float: left; width: auto; font-size: 95%; margin-left: 4em; } -#user-profile img.gravatar { +.user-profile img.gravatar { width: auto; } -#user-profile .gravatar p { +.user-profile .gravatar p { text-align: center; } @@ -86,13 +86,16 @@ table.user-data input { } -#user-profile .ajaxloader { +.user-profile .ajaxloader { margin-top: 0; margin-left: 0; position: absolute; } -#user-profile table.subscriptions { +.user-profile table.subscriptions { width: auto; } +.user-public-profile table.user-data { + float: left; +} diff --git a/hyperkitty/templates/user_profile.html b/hyperkitty/templates/user_profile.html index 667e252..c7d7550 100644 --- a/hyperkitty/templates/user_profile.html +++ b/hyperkitty/templates/user_profile.html @@ -11,7 +11,7 @@ {% block content %} -
+