summaryrefslogtreecommitdiffstats
path: root/templates/post_contributor_info.html
diff options
context:
space:
mode:
authorroot <root@u15356270.onlinehome-server.com>2009-11-13 20:18:55 -0500
committerroot <root@u15356270.onlinehome-server.com>2009-11-13 20:31:40 -0500
commit7e4f1d542e00b4d3121da6ae5524e95867f2371b (patch)
tree5a3edfb81cc137dbc877f75f9bde80e9720b3ba0 /templates/post_contributor_info.html
parent3a4b6ad43221abc0e0ff345d9368c3348b312128 (diff)
downloadaskbot-7e4f1d542e00b4d3121da6ae5524e95867f2371b.tar.gz
askbot-7e4f1d542e00b4d3121da6ae5524e95867f2371b.tar.bz2
askbot-7e4f1d542e00b4d3121da6ae5524e95867f2371b.zip
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
Diffstat (limited to 'templates/post_contributor_info.html')
-rw-r--r--templates/post_contributor_info.html55
1 files changed, 55 insertions, 0 deletions
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 %}
+<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>