Mercurial > public > bravenewsurf
comparison bns_website/templates/reviews/review_list.html @ 34:37d9b6b1a097
Added reviews template tag. Fix ordering of reviews. Tweaked the display of the reviews page.
Addresses ticket 2.
author | Chris Ridgway <ckridgway@gmail.com> |
---|---|
date | Sat, 05 Nov 2011 23:53:10 -0500 |
parents | b34d5e7affe3 |
children | 2598bc18b6fb |
comparison
equal
deleted
inserted
replaced
33:b5329e6ad828 | 34:37d9b6b1a097 |
---|---|
13 {% block content %} | 13 {% block content %} |
14 {% navbar 'reviews' %} | 14 {% navbar 'reviews' %} |
15 <h1>Reviews</h1> | 15 <h1>Reviews</h1> |
16 | 16 |
17 <div class="reviews"> | 17 <div class="reviews"> |
18 <ul class="review-list"> | 18 {% if object_list %} |
19 {% for review in object_list %} | 19 <ul class="review-list"> |
20 <li class="review-list-item"> | 20 {% for review in object_list %} |
21 <blockquote> | 21 <li class="review-list-item"> |
22 <p>{{ review.review|safe }}</p> | 22 <blockquote> |
23 <small>{{ review.reviewer }} - <a href="{{ review.review_url }}">{% if review.review_site %}{{ review.review_site }}{% else %}{{ review.review_url }}{% endif %}</a></small> | 23 <p>{{ review.review|safe }}</p> |
24 </blockquote> | 24 <small> |
25 </li> | 25 {{ review.reviewer }} |
26 {% endfor %} | 26 {% if review.review_url %} |
27 </ul> | 27 - <a href="{{ review.review_url }}"><em>{% if review.review_site %}{{ review.review_site }}{% else %}{{ review.review_url }}{% endif %}</em></a> |
28 | 28 {% else %}{% if review.review_site %} |
29 - <em>{{ review.review_site }}</em> | |
30 {% endif %}{% endif %} | |
31 </small> | |
32 </blockquote> | |
33 </li> | |
34 {% endfor %} | |
35 </ul> | |
36 {% else %} | |
37 Coming soon... | |
38 {% endif %} | |
29 {% endblock %} | 39 {% endblock %} |