]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/stats.html
made some changes to the subscriptions view. works much better now. I was doing...
[osqa.git] / forum / skins / default / templates / users / stats.html
index adc6e12652151fb8728ed11d905308b0c830edf1..7acacbd6db260740b200151db4133a9f40339046 100644 (file)
@@ -6,40 +6,47 @@
 {% load humanize %}
 {% load question_list_tags %}
                {% block usercontent %}
-       
+
         <a name="questions"></a>
         {% spaceless %}
             <h2>
-                {% blocktrans count questions|length as counter %}
+                {% blocktrans count questions.paginator.count as counter %}
                 <span class="count">1</span> Question
                 {% plural %}
                 <span class="count">{{counter}}</span> Questions
                 {% endblocktrans %}
+                <a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon-small.png" %}');"
+                    href="{{ view_user.get_asked_url }}?type=rss" title="{% trans "subscribe to question RSS feed" %}"></a>
             </h2>
         {% endspaceless %}
-               <div class="user-stats-table">
-                   {% for question in questions %}
+        <div>{{ questions.paginator.sort_tabs }}</div>
+               <div id="listA" class="user-stats-table">
+                   {% for question in questions.paginator.page %}
                        {% question_list_item question favorite_count=yes signature_type=badges %}
                    {% endfor %}
                </div>
                <br clear="all"/>
+               <div class="pager">{{ questions.paginator.page_numbers }}</div>
+               <br clear="all"/>
+
         <a name="answers"></a>
         {% spaceless %}
             <h2>
-                {% blocktrans count answers|length as counter %}
+                {% blocktrans count answers.paginator.count as counter %}
                 <span class="count">1</span> Answer
                 {% plural %}
                 <span class="count">{{counter}}</span> Answers
                 {% endblocktrans %}
             </h2>
         {% endspaceless %}
+        <div>{{ answers.paginator.sort_tabs }}</div>
         <div class="user-stats-table">
-            {% for answer in answers %}
+            {% for answer in answers.paginator.page %}
             <div class="answer-summary">
                 <a title="{{answer.question.title}}"
                     href="{{ answer.get_absolute_url }}">
-                    <span class="{% if answer.accepted %}answered-accepted {% endif %} answer-votes" 
-                                               title="{% blocktrans with answer.score as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answer.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
+                    <span class="{% if answer.nis.accepted %}answered-accepted {% endif %} answer-votes" 
+                                               title="{% blocktrans with answer.score as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answer.nis.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
                         {{ answer.score }}
                     </span>
                 </a>
@@ -51,7 +58,9 @@
             </div>
             {% endfor %}
         </div>
-        <br/>
+        <br clear="all"/>
+               <div class="pager">{{ answers.paginator.page_numbers }}</div>
+        <br clear="all"/>
         <a name="votes"></a>
         {% spaceless %}
             <h2>
@@ -90,8 +99,8 @@
         {% endspaceless %}
         <div class="user-stats-table">
             <table class="tags">
-                <tr>
-                    <td width="180" valign="top">
+                <tr style="vertical-align: top;">
+                    <td valign="top" style="padding-right: 20px;">
                         {% for tag in user_tags%}
                         <a rel="tag" 
                                                        title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}" 
         {% endspaceless %}
         <div class="user-stats-table">
             <table>
-                <tr>
-                    <td width="180" style="line-height:35px">
+                <tr style="vertical-align: top;">
+                    <td style="line-height:35px; padding-right: 20px;">
                         {% for award, count in awards %}
-                            <a href="{% url badges %}{{award.id}}/{{award.name}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">&#9679;</span>&nbsp;{{ award.name }}</a><span class="tag-number"> &#215; {{ count|intcomma }}</span><br/>
+                            <a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">&#9679;</span>&nbsp;{{ award.name }}</a><span class="tag-number"> &#215; {{ count|intcomma }}</span><br/>
                             {% if forloop.counter|divisibleby:"6" %}
                                 </td>
                                 <td width="180" style="line-height:35px">