1 {% extends "user.html" %}
 
   2 <!-- user_stats.html -->
 
   5 {% load extra_filters %}
 
   7 {% load question_list_tags %}
 
   8                 {% block usercontent %}
 
  10         <a name="questions"></a>
 
  13                 {% blocktrans count questions|length as counter %}
 
  14                 <span class="count">1</span> Question
 
  16                 <span class="count">{{counter}}</span> Questions
 
  20                 <div class="user-stats-table">
 
  21                     {% for question in questions %}
 
  22                         {% question_list_item_extended question %}
 
  26         <a name="answers"></a>
 
  29                 {% blocktrans count answered_questions|length as counter %}
 
  30                 <span class="count">1</span> Answer
 
  32                 <span class="count">{{counter}}</span> Answers
 
  36         <div class="user-stats-table">
 
  37             {% for answered_question in answered_questions %}
 
  38             <div class="answer-summary">
 
  39                 <a title="{{answered_question.summary|collapse}}" 
 
  40                     href="{{ answered_question.get_absolute_url }}#{{answered_question.answer_id}}">
 
  41                     <span class="answer-votes {% if answered_question.accepted %}answered-accepted{% endif %}" 
 
  42                                                 title="{% blocktrans with answered_question.vote_count as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answered_question.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
 
  43                         {{ answered_question.vote_count }}
 
  46                 <div class="answer-link">
 
  48                     <a href="{{ answered_question.get_absolute_url }}#{{answered_question.answer_id}}">{{answered_question.title}}</a> 
 
  50                     {% if answered_question.comment_count %}
 
  52                                     {% blocktrans count answered_question.comment_count as comment_count %}
 
  55                     the answer has been commented {{comment_count}} times
 
  67                 {% blocktrans count total_votes as cnt %}
 
  68                     <span class="count">1</span> Vote
 
  70                     <span class="count">{{cnt}}</span> Votes
 
  74         <div class="user-stats-table">
 
  78                         <img style="cursor: default;" src="{% media  "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
 
  79                             <span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
 
  83                         <img style="cursor: default;" src="{% media  "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
 
  84                             <span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
 
  93                 {% blocktrans count user_tags|length as counter %}
 
  94                     <span class="count">1</span> Tag
 
  96                     <span class="count">{{counter}}</span> Tags
 
 100         <div class="user-stats-table">
 
 103                     <td width="180" valign="top">
 
 104                         {% for tag in user_tags%}
 
 106                                                         title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}" 
 
 107                                                         href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
 
 108                         <span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
 
 109                             {% if forloop.counter|divisibleby:"10" %}
 
 111                                 <td width="180"  valign="top">
 
 118         <a name="badges"></a>
 
 121             {% blocktrans count total_awards as counter %}
 
 122             <span class="count">1</span> Badge
 
 124             <span class="count">{{counter}}</span> Badges
 
 128         <div class="user-stats-table">
 
 131                     <td width="180" style="line-height:35px">
 
 132                         {% for award in awards %}
 
 133                             <a href="{% url badges %}{{award.id}}/{{award.name}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">●</span> {{ award.name }}</a><span class="tag-number"> × {{ award.count|intcomma }}</span><br/>
 
 134                             {% if forloop.counter|divisibleby:"6" %}
 
 136                                 <td width="180" style="line-height:35px">
 
 144 <!-- end user_stats.html -->