changeset 32:b34d5e7affe3

If the review_site exists, display it as the link text; else fall back to the review_url.
author Brian Neal <bgneal@gmail.com>
date Fri, 04 Nov 2011 20:22:35 -0500
parents 9b62e4eef794
children b5329e6ad828
files bns_website/templates/reviews/review_list.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bns_website/templates/reviews/review_list.html	Fri Nov 04 20:08:45 2011 -0500
+++ b/bns_website/templates/reviews/review_list.html	Fri Nov 04 20:22:35 2011 -0500
@@ -20,7 +20,7 @@
    <li class="review-list-item">
       <blockquote>
          <p>{{ review.review|safe }}</p>
-         <small>{{ review.reviewer }} - <a href="{{ review.review_url }}">{{ review.review_url }}</a></small>
+         <small>{{ review.reviewer }} - <a href="{{ review.review_url }}">{% if review.review_site %}{{ review.review_site }}{% else %}{{ review.review_url }}{% endif %}</a></small>
       </blockquote>
    </li>
 {% endfor %}