diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
commit | 35b666224a05fbd249b1c51a0a48fb95b246fe9a (patch) | |
tree | bfce966ce040dd849e8cc35a012d18f7632ad6b1 /templates/users_questions.html | |
parent | 5b45e526c74faf55110ff0afdcba19797d7e0f4d (diff) | |
download | askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.gz askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.bz2 askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.zip |
adding all files again
Diffstat (limited to 'templates/users_questions.html')
-rw-r--r-- | templates/users_questions.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/templates/users_questions.html b/templates/users_questions.html new file mode 100644 index 00000000..dfb87c8f --- /dev/null +++ b/templates/users_questions.html @@ -0,0 +1,66 @@ +<!-- users_questions.html --> +{% load extra_tags %} +{% load extra_filters %} +{% load humanize %} +{% load i18n %} +<div class="user-stats-table"> + {% for question in questions%} + {% if question.favourite_count %} + {% if question.favorited_myself %} + <div class="favorites-count"> + <img title="{% trans "this questions was selected as favorite" %} {{question.favourite_count}} {% trans "number of times" %}" + src="/content/images/vote-favorite-on.png"> + <div><b>{{question.favourite_count|intcomma}}</b></div> + </div> + {% else %} + <div class="favorites-count-off"> + <img title="{% trans "this question was selected as favorite" %}{{question.favourite_count}} {% trans "number of times" %}" + src="/content/images/vote-favorite-off.png"> + <div><b>{{question.favourite_count|intcomma}}</b></div> + </div> + {% endif %} + {% else %} + <div class="favorites-empty"> </div> + {% endif %} + <div id="question-summary-{{question.id}}" class="question-summary narrow"> + <a style="text-decoration: none;" href="/questions/{{question.id}}/{{question.get_question_title}}"> + <div class="stats"> + <div class="votes"> + <div class="vote-count-post">{{question.vote_count|intcomma}}</div> + {% trans "votes" %} + + </div> + <div title="{% if question.answer_accepted %}{% trans "this answer has been accepted to be correct" %}{% endif %}" class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}"> + <div class="answer-count-post">{{question.answer_count|intcomma}}</div> + {% trans "answers" %} + + </div> + <div class="views"> + <div class="views-count-post">{{question.view_count|cnprog_intword|safe}}</div> + {% trans "views" %} + </div> + </div> + </a> + <div class="summary"> + <h3> + <a title="{{question.summary}}" href="/questions/{{question.id}}/{{question.title}}">{{question.title}}</a> + </h3> + <div class="tags"> + {% convert2tagname_list question %} + {% for tag in question.tagnames %} + <!--todo - move trans below to blocktrans --> + <a href="{% url forum.views.tag tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a> + {% endfor %} + </div> + <div class="started"> + <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span> + {% if question.la_username %} + <a href="/users/{{question.la_user_id}}/{{question.la_username}}">{{question.la_username}}</a> {% get_score_badge_by_details question.la_user_reputation question.la_user_gold question.la_user_silver question.la_user_bronze%} + {% endif %} + </div> + </div> + </div> + <br clear="both"/> + {% endfor %} +</div> +<!-- end users_questions.html --> |