Mercurial > public > bravenewsurf
annotate 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 |
rev | line source |
---|---|
ckridgway@16 | 1 {% extends 'base.html' %} |
ckridgway@16 | 2 {% load core_tags %} |
ckridgway@16 | 3 {% block title %}Reviews{% endblock %} |
ckridgway@16 | 4 |
ckridgway@16 | 5 {% block custom_css %} |
ckridgway@16 | 6 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css"> |
ckridgway@16 | 7 {% endblock %} |
ckridgway@16 | 8 {% block custom_js %} |
ckridgway@16 | 9 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> |
ckridgway@16 | 10 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> |
ckridgway@16 | 11 {% endblock %} |
ckridgway@16 | 12 |
ckridgway@16 | 13 {% block content %} |
ckridgway@16 | 14 {% navbar 'reviews' %} |
ckridgway@16 | 15 <h1>Reviews</h1> |
ckridgway@16 | 16 |
ckridgway@28 | 17 <div class="reviews"> |
bgneal@31 | 18 <ul class="review-list"> |
ckridgway@16 | 19 {% for review in object_list %} |
bgneal@31 | 20 <li class="review-list-item"> |
ckridgway@28 | 21 <blockquote> |
bgneal@30 | 22 <p>{{ review.review|safe }}</p> |
bgneal@32 | 23 <small>{{ review.reviewer }} - <a href="{{ review.review_url }}">{% if review.review_site %}{{ review.review_site }}{% else %}{{ review.review_url }}{% endif %}</a></small> |
ckridgway@28 | 24 </blockquote> |
ckridgway@28 | 25 </li> |
ckridgway@16 | 26 {% endfor %} |
ckridgway@16 | 27 </ul> |
ckridgway@16 | 28 |
ckridgway@16 | 29 {% endblock %} |