Mercurial > public > bravenewsurf
comparison bns_website/templates/reviews/review_list.html @ 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 | 37d9b6b1a097 |
comparison
equal
deleted
inserted
replaced
31:9b62e4eef794 | 32:b34d5e7affe3 |
---|---|
18 <ul class="review-list"> | 18 <ul class="review-list"> |
19 {% for review in object_list %} | 19 {% for review in object_list %} |
20 <li class="review-list-item"> | 20 <li class="review-list-item"> |
21 <blockquote> | 21 <blockquote> |
22 <p>{{ review.review|safe }}</p> | 22 <p>{{ review.review|safe }}</p> |
23 <small>{{ review.reviewer }} - <a href="{{ review.review_url }}">{{ review.review_url }}</a></small> | 23 <small>{{ review.reviewer }} - <a href="{{ review.review_url }}">{% if review.review_site %}{{ review.review_site }}{% else %}{{ review.review_url }}{% endif %}</a></small> |
24 </blockquote> | 24 </blockquote> |
25 </li> | 25 </li> |
26 {% endfor %} | 26 {% endfor %} |
27 </ul> | 27 </ul> |
28 | 28 |