]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/question_summary_list_roll.html
merge jambazov -> trunk
[osqa.git] / forum / skins / default / templates / question_summary_list_roll.html
1     <div class="qstA">
2         <h2>
3             <a href="{{ question.get_absolute_url }}">{{ question.headline }}</a>
4         </h2>
5         <div class="stat">
6             <table>
7                 <tr>
8                     <td><span class="num">{{ question.answer_count|intcomma }}</span> </td>
9                     <td><span class="num">{{ question.score|intcomma }}</span> </td>
10                     <td><span class="num">{{ question.view_count|decorated_int|safe }}</span> </td>
11                 </tr>  
12                 <tr>
13                     <td><span class="unit">{% trans "answers" %}</span></td>
14                     <td><span class="unit">{% trans "votes" %}</span></td>
15                     <td><span class="unit">{% trans "views" %}</span></td>
16                 </tr> 
17             </table>
18         </div>
19         
20         <div class="summary">
21             {{ question.summary }}...                
22         </div>
23         
24         {% ifequal tab_id 'active'%}
25         {% if question.wiki and settings.WIKI_ON %}
26         <span class="from wiki">{% trans "community wiki" %}</span>
27         <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>
28         {% else %}
29         <div class="from">
30             {% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %}
31             <span class="author"><a href="{{ question.last_activity_by.get_profile_url }}">{{ question.last_activity_by }}</a></span>
32             <span class="score">{% get_score_badge question.last_activity_by %} </span>
33             <span class="date" title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</span>
34         </div>
35         {% endif %}
36         {% else %}
37         {% if question.wiki and settings.WIKI_ON %}
38         <span class="from wiki">{% trans "community wiki" %}</span>
39         <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>
40         {% else %}
41         <div class="from">
42             {% comment %}{% gravatar question.author 24 %}{% endcomment %}
43             <span class="author"><a href="{{ question.author.get_profile_url }}">{{ question.author }}</a></span>
44             <span class="score">{% get_score_badge question.author %} </span>
45             <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>
46         </div>
47         {% endif %}
48         {% endifequal %}
49         
50         <div class="tags">
51         {% for tag in question.tagname_list %}
52         <a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">{{ tag }}</a>
53         {% endfor %}
54         </div>
55     </div>