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