diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-10-03 17:51:54 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-10-03 17:51:54 -0300 |
commit | d95fc57baed664bce87bc7c233cf58ab66c58123 (patch) | |
tree | e2aa50b488219ed3398bacb6fc2b1565da6226c5 | |
parent | a203bac98a4b035c26d2b19c0c09c28a55a7d102 (diff) | |
download | askbot-d95fc57baed664bce87bc7c233cf58ab66c58123.tar.gz askbot-d95fc57baed664bce87bc7c233cf58ab66c58123.tar.bz2 askbot-d95fc57baed664bce87bc7c233cf58ab66c58123.zip |
hopefully fixed a bug reported at http://askbot.org/en/question/666/askbot-0722-to-0723-update-issue
-rw-r--r-- | askbot/skins/default/templates/macros.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/askbot/skins/default/templates/macros.html b/askbot/skins/default/templates/macros.html index afa7b264..c56d1cc4 100644 --- a/askbot/skins/default/templates/macros.html +++ b/askbot/skins/default/templates/macros.html @@ -282,11 +282,11 @@ poor design of the data or methods on data objects #} {% endif %} </div> {% elif contributor_type=="last_updater" %} - {% if post.post_type in ('Question', 'Answer') %} + {% if post.post_type in ('question', 'answer') %} {% set last_edited_at = post.last_edited_at %} {% set original_author = post.author %} {% set update_author = post.last_edited_by %} - {% elif post.post_type in ('QuestionRevision', 'AnswerRevision') %} + {% elif post.__class__.__name__ in ('QuestionRevision', 'AnswerRevision') %} {% set last_edited_at = post.revised_at %} {% set original_author = None %}{# fake value to force display widget in the revision views #} {% set update_author = post.author %} @@ -295,7 +295,7 @@ poor design of the data or methods on data objects #} <div class='post-update-info'> <p style="line-height:12px;"> <a - {% if post.post_type == 'Question' %} + {% if post.post_type == 'question' %} href="{% url question_revisions post.id %}" {% else %} href="{% url answer_revisions post.id %}" |