From 750b596044fa30b3ceb0f7885d18bbf5e71cb53e Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Sat, 16 Feb 2013 15:42:30 +0100 Subject: Give a link to gravatar from the user profile --- hyperkitty/static/css/hyperkitty.css | 20 +++++++++++++++++++- hyperkitty/templates/user_profile.html | 7 +++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/hyperkitty/static/css/hyperkitty.css b/hyperkitty/static/css/hyperkitty.css index ec4f136..5ef49e0 100644 --- a/hyperkitty/static/css/hyperkitty.css +++ b/hyperkitty/static/css/hyperkitty.css @@ -166,8 +166,26 @@ h1.lists { margin-top: 2em; } +#user-profile form { + float: left; +} + +#user-profile div.gravatar { + /*float: right;*/ + float: left; + width: auto; + font-size: 95%; + margin-left: 4em; +} +#user-profile img.gravatar { + width: auto; +} +#user-profile .gravatar p { + text-align: center; +} + + table.user-data { - margin-top: 2em; width: auto; } table.user-data th label { diff --git a/hyperkitty/templates/user_profile.html b/hyperkitty/templates/user_profile.html index 10f8a04..ff154a8 100644 --- a/hyperkitty/templates/user_profile.html +++ b/hyperkitty/templates/user_profile.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load i18n %} {% load hk_generic %} +{% load gravatar %} {% block title %} @@ -44,6 +45,12 @@

+
+ {% gravatar user.email 150 %} +

Edit on gravatar.com

+
+ +

Favorites

{% if favorites %} -- cgit