From 0550f1d8119d990915adc5dbc0ada9c3471f7545 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 12 Dec 2012 12:46:51 -0300 Subject: a small refactoring on the badges page --- askbot/media/style/style.css | 11 ++++++++--- askbot/templates/badges.html | 17 ++++++----------- askbot/views/meta.py | 12 +++++------- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/askbot/media/style/style.css b/askbot/media/style/style.css index b23526f5..3ca80614 100644 --- a/askbot/media/style/style.css +++ b/askbot/media/style/style.css @@ -213,6 +213,7 @@ body.user-messages { } .wait-icon-box { text-align: center; + margin-bottom: 8px; } #closeNotify { position: absolute; @@ -499,9 +500,6 @@ body.user-messages { text-align: center; padding-bottom: 10px; } -.search-drop-menu.empty { - padding-bottom: 8px; -} .search-drop-menu.empty ul { padding: 5px; margin: 0; @@ -536,6 +534,13 @@ input[type="submit"].searchBtn { height: 0; z-index: 0; } +.ask-page .search-drop-menu.empty { + border: none; + padding: 0; +} +.ask-page .search-drop-menu.empty ul { + padding: 0; +} .searchBtn:hover { background: -146px -36px url(../images/sprites.png) no-repeat; } diff --git a/askbot/templates/badges.html b/askbot/templates/badges.html index ce76e76b..e669b7d4 100644 --- a/askbot/templates/badges.html +++ b/askbot/templates/badges.html @@ -5,21 +5,16 @@

{% trans %}Badges{% endtrans %}

{% trans %}Community gives you awards for your questions, answers and votes.{% endtrans %}
-{% trans %}Below is the list of available badges and number - of times each type of badge has been awarded. Have ideas about fun -badges? Please, give us your feedback -{% endtrans %} +{% trans %}Below is the list of available badges and number of times each type of badge has been awarded.{% endtrans %}

{% for badge in badges %}
-
- {% for a in mybadges %} - {% if a.badge_id == badge.id %} - - {% endif %} - {% endfor %} -
+ {% if badge.id in my_badge_ids %} +
+ +
+ {% endif %}