From 7914fa4294e2d7a0508fd94c17ecd1723cc05f92 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sun, 6 Feb 2011 14:55:33 -0500 Subject: made contributor info more compact for posts without updates --- askbot/skins/default/templates/macros.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/askbot/skins/default/templates/macros.html b/askbot/skins/default/templates/macros.html index a9b4c252..6bd000a1 100644 --- a/askbot/skins/default/templates/macros.html +++ b/askbot/skins/default/templates/macros.html @@ -136,10 +136,10 @@ {%- endmacro -%} {%- macro post_contributor_info(post, contributor_type, is_wiki, wiki_min_rep) -%} -
{# there is a whole bunch of trickery here, probably indicative of poor design of the data or methods on data objects #} {% if contributor_type=="original_author" %} +
{% if is_wiki %}

{%- if post.__class__.__name__ == 'Question' -%} @@ -179,6 +179,7 @@ poor design of the data or methods on data objects #} {{ user_score_and_badge_summary(post.author) }}
{{ user_website_link(post.author) }} {% endif %} +

{% elif contributor_type=="last_updater" %} {% if post.__class__.__name__ in ('Question', 'Answer') %} {% set last_edited_at = post.last_edited_at %} @@ -190,6 +191,7 @@ poor design of the data or methods on data objects #} {% set update_author = post.author %} {% endif %} {% if last_edited_at %} +

{{ user_website_link(update_author) }} {% endif %} +

{% endif %} {% endif %} -
{%- endmacro -%} {%- macro question_summary(question, extra_class=None) -%} -- cgit v1.2.3-1-g7c22