From: hernani Date: Mon, 12 Apr 2010 14:04:05 +0000 (+0000) Subject: several fixes in users profile X-Git-Tag: live~1045 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/8b41b2f3a13b9f080d34a9ce0e7f815bc202417a several fixes in users profile git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@29 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/media/style/style.css b/forum/skins/default/media/style/style.css index c7142cf..7c651e6 100644 --- a/forum/skins/default/media/style/style.css +++ b/forum/skins/default/media/style/style.css @@ -530,6 +530,12 @@ blockquote { color: #666666; } +.short-summary .favorites { + width: 24px; + float: left; + text-align: center; +} + #question-table { margin-bottom: 10px; } @@ -1163,7 +1169,7 @@ div.comments-container, div.comments-container-accepted, div.comments-container- color: #314362; } -.answered-accepted { +.answer-votes.answered-accepted { background: none repeat scroll 0 0 #E6F8DD; color: #3A6231; } @@ -1847,6 +1853,7 @@ div.started .reputation-score { color: #333333; font-size: 110%; font-weight: bold; + margin-left: 3px; } .footerLinks { @@ -2296,7 +2303,7 @@ a.sidebar_button:hover { text-decoration: none; } -a.post-vote, a.favorite-mark, a.accept-answer { +a.post-vote, .favorite-mark, a.accept-answer { display: block; height: 24px; position: relative; @@ -2335,11 +2342,11 @@ a.accept-answer.on, a.accept-answer:hover { padding: 0 0 3px; } -a.favorite-mark { +.favorite-mark { background: url("/m/default/media/images/vote-favorite-off.png") no-repeat scroll center center transparent; } -a.favorite-mark.on, a.favorite-mark:hover { +.favorite-mark.on, a.favorite-mark:hover { background: url("/m/default/media/images/vote-favorite-on.png") no-repeat scroll center center transparent; } diff --git a/forum/skins/default/templates/question_list/item.html b/forum/skins/default/templates/question_list/item.html index ccaca92..e573914 100644 --- a/forum/skins/default/templates/question_list/item.html +++ b/forum/skins/default/templates/question_list/item.html @@ -1,7 +1,11 @@ {% load i18n humanize extra_filters extra_tags user_tags %}
-
-
+
{% if favorite_count %} +
+ +
{{question.favourite_count|intcomma}}
+
+ {% endif %}
{{question.score|intcomma}}
{% trans "votes" %}
@@ -15,10 +19,10 @@
-

{{question.title}}

+

{{question.title}}

{% diff_date question.last_activity_at %} - {% if question.last_activity_by %}{% user_signature_small_lite question.last_activity_by %}{% endif %} + {% if question.last_activity_by %}{% user_signature question.last_activity_by signature_type %}{% endif %}
{% for tag in question.tagname_list %} diff --git a/forum/skins/default/templates/question_list/item_extended.html b/forum/skins/default/templates/question_list/item_extended.html deleted file mode 100644 index 934c45d..0000000 --- a/forum/skins/default/templates/question_list/item_extended.html +++ /dev/null @@ -1,40 +0,0 @@ -{% load i18n %} -{% load humanize %} -{% load extra_filters %} -{% load extra_tags %} -{% load user_tags %} - -
-
-
- -
{{question.favourite_count|intcomma}}
-
-
-
{{question.score|intcomma}}
-
{% trans "votes" %}
-
-
-
{{question.answer_count|intcomma}}
-
{% trans "answers" %}
-
-
-
{{question.view_count|cnprog_intword|safe}}
-
{% trans "views" %}
-
-
- -

{{question.title}}

-
- {% diff_date question.last_activity_at %} - {% if question.last_activity_by %} - {% user_signature_small_full question.last_activity_by %} - {% endif %} -
- -
- {% for tag in question.tagname_list %} - - {% endfor %} -
-
\ No newline at end of file diff --git a/forum/skins/default/templates/questions.html b/forum/skins/default/templates/questions.html index ef7df58..31644e7 100644 --- a/forum/skins/default/templates/questions.html +++ b/forum/skins/default/templates/questions.html @@ -24,11 +24,9 @@ {% question_list_title %} {% question_sort_tabs sort_context %}
-
-{% for question in questions %} +
{% for question in questions %} {% question_list_item question %} -{% endfor %} -
+{% endfor %}
{% endblock %} {% block tail %} diff --git a/forum/skins/default/templates/user_stats.html b/forum/skins/default/templates/user_stats.html index bcb67e2..96a1f36 100644 --- a/forum/skins/default/templates/user_stats.html +++ b/forum/skins/default/templates/user_stats.html @@ -19,14 +19,14 @@ {% endspaceless %}
{% for question in questions %} - {% question_list_item_extended question %} + {% question_list_item question favorite_count=yes signature_type=badges %} {% endfor %}

{% spaceless %}

- {% blocktrans count answered_questions|length as counter %} + {% blocktrans count answers|length as counter %} 1 Answer {% plural %} {{counter}} Answers @@ -34,22 +34,22 @@

{% endspaceless %}
- {% for answered_question in answered_questions %} + {% for answer in answers %}
- - - {{ answered_question.vote_count }} + + + {{ answer.score }}