From 0f5a2b253de5712423a999e860600c38fb7211db Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 20 Jun 2013 12:04:56 +0200 Subject: Use tabs in the user profile page --- hyperkitty/static/css/hyperkitty-common.css | 5 -- hyperkitty/templates/user_profile.html | 129 ++++++++++++++++------------ 2 files changed, 72 insertions(+), 62 deletions(-) diff --git a/hyperkitty/static/css/hyperkitty-common.css b/hyperkitty/static/css/hyperkitty-common.css index 7b05127..1ff6e91 100644 --- a/hyperkitty/static/css/hyperkitty-common.css +++ b/hyperkitty/static/css/hyperkitty-common.css @@ -17,11 +17,6 @@ } -.pagination { - margin-top: 3em; -} - - /* from Bootstrap's alert class */ .errorlist { list-style-type: none; diff --git a/hyperkitty/templates/user_profile.html b/hyperkitty/templates/user_profile.html index f82f92d..1a12846 100644 --- a/hyperkitty/templates/user_profile.html +++ b/hyperkitty/templates/user_profile.html @@ -15,69 +15,83 @@

User profile for {{ user }}

-
- {% csrf_token %} - - - - - - - {{ form.as_table }} - - - - - {% if use_mockups %} - - - - - {% endif %} - - - - - -
{% trans 'User name:' %}{{ user.username}}
{% trans 'Email:' %}{{ user.email }}
{% trans 'Karma:' %}{{ user_profile.karma }}
{% trans 'Date joined:' %}{{ user.date_joined }}
-

- - or cancel -

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

Edit on gravatar.com

-
+
+ + +
+
+ {% csrf_token %} + + + + + + + {{ form.as_table }} + + + + + {% if use_mockups %} + + + + + {% endif %} + + + + + +
{% trans 'User name:' %}{{ user.username}}
{% trans 'Email:' %}{{ user.email }}
{% trans 'Karma:' %}{{ user_profile.karma }}
{% trans 'Date joined:' %}{{ user.date_joined }}
+

+ + or cancel +

+
+ +
+
-

Favorites

- {% if favorites %} - - {% else %} -

No favorite yet.

- {% endif %} +
+ {% if favorites %} + + {% else %} +

No favorite yet.

+ {% endif %} +
-

Threads you have read

- Loading... -
+
+ Loading... +
+
-

Votes

- Loading... -
+
+ Loading... +
+
+
{% endblock %} @@ -87,8 +101,9 @@ -- cgit