From 7e4f1d542e00b4d3121da6ae5524e95867f2371b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Nov 2009 20:18:55 -0500 Subject: better comments, email subscriptions, corrected view counter, some ie7 issues, wiki optional with settings.WIKI_ON, site can be mounted on arbitrary url prefix, english language improvements, added feedback form, versioned css and js files to force browser cache reload when settings.RESOURCE_REVISION is incremented , other fixes --- templates/post_contributor_info.html | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 templates/post_contributor_info.html (limited to 'templates/post_contributor_info.html') diff --git a/templates/post_contributor_info.html b/templates/post_contributor_info.html new file mode 100644 index 00000000..9997be5f --- /dev/null +++ b/templates/post_contributor_info.html @@ -0,0 +1,55 @@ +{% load i18n %} +{% load smart_if %} +{% load extra_tags %} +
+{% ifequal contributor_type "original_author" %} + {% if wiki %} +

{% trans "community wiki" %}

+

+ {% blocktrans count post.revisions.all|length as rev_count %} + one revision + {% plural %} + {{rev_count}} revisions + {% endblocktrans %} +

+

{{post.author.get_profile_link}}

+ {% else %} +

+ {% ifequal post_type "question" %} + {% trans "asked" %} + {% else %} + {% ifequal post_type "answer" %} + {% trans "answered" %} + {% else %} + {% trans "posted" %} + {% endifequal %} + {% endifequal %} + {% ifequal post_type "revision" %} + {% diff_date post.revised_at %} + {% else %} + {% diff_date post.added_at %} + {% endifequal %} +

+ {% gravatar post.author 32 %} +

{{post.author.get_profile_link}}
+ {% get_score_badge post.author %}

+ {% endif %} +{% else %} + {% if post.last_edited_at %} +

+ {% ifequal post_type 'question' %} + + {% else %} + + {% endifequal %} + {% trans "updated" %} {% diff_date post.last_edited_at %} + +

+ {% if post.author != post.last_edited_by or wiki %} + {% gravatar post.last_edited_by 32 %} +

{{post.last_edited_by.get_profile_link}}
+ {% get_score_badge post.last_edited_by %}

+ {% endif %} + {% endif %} +{% endifequal %} +
-- cgit v1.2.3-1-g7c22