]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/post_contributor_info.html
initial import
[osqa.git] / forum / skins / default / templates / post_contributor_info.html
1 {% load i18n %}
2 {% load smart_if %}
3 {% load extra_tags %}
4 <div class='post-update-info'>
5 {% ifequal contributor_type "original_author" %}
6     {% if wiki %}
7         <p>{% trans "community wiki" %}</p>
8         <p>
9             {% blocktrans count post.revisions.all|length as rev_count %}
10                 one revision
11             {% plural %}
12                 {{rev_count}} revisions
13             {% endblocktrans %}
14         </p>
15         <p>{{post.author.get_profile_link}}</p>
16     {% else %}
17         <p style="line-height:12px;">
18             {% ifequal post_type "question" %}
19                 {% trans "asked" %}
20             {% else %}
21                 {% ifequal post_type "answer" %}
22                     {% trans "answered" %}
23                 {% else %}
24                     {% trans "posted" %}
25                 {% endifequal %}
26             {% endifequal %}
27             {% ifequal post_type "revision" %}
28                 <strong>{% diff_date post.revised_at %}</strong>
29             {% else %}
30                 <strong>{% diff_date post.added_at %}</strong>
31             {% endifequal %}
32         </p>
33         {% gravatar post.author 32 %}
34         <p>{{post.author.get_profile_link}}<br/>
35         {% get_score_badge post.author %}</p>
36     {% endif %}
37 {% else %}
38     {% if post.last_edited_at %}
39         <p style="line-height:12px;">
40         {% ifequal post_type 'question' %}
41         <a href="{% url question_revisions post.id %}">
42         {% else %}
43         <a href="{% url answer_revisions post.id %}">
44         {% endifequal %}
45         {% trans "updated" %} <strong>{% diff_date post.last_edited_at %}</strong>
46         </a>
47         </p>
48         {% if post.author != post.last_edited_by or wiki %}
49             {% gravatar post.last_edited_by 32 %}
50             <p style="float:left">{{post.last_edited_by.get_profile_link}}<br/>
51             {% get_score_badge post.last_edited_by %}</p>
52         {% endif %}
53     {% endif %}
54 {% endifequal %}
55 </div>