From 3c4c71fc19865bfb75231c425fae31c6b2c211de Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 9 Feb 2010 16:48:38 -0500 Subject: started working towards skinning forum app - first step - move templates to app --- forum/templates/post_contributor_info.html | 55 ++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 forum/templates/post_contributor_info.html (limited to 'forum/templates/post_contributor_info.html') diff --git a/forum/templates/post_contributor_info.html b/forum/templates/post_contributor_info.html new file mode 100644 index 00000000..9997be5f --- /dev/null +++ b/forum/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