annotate bns_website/templates/reviews/review_list.html @ 45:2598bc18b6fb

Shamelessly stole Bob's anchor target method. Fixed CSS for reviews so that the top of the review is not clipped by the navbar.
author Chris Ridgway <ckridgway@gmail.com>
date Wed, 09 Nov 2011 23:18:32 -0600
parents 37d9b6b1a097
children 51c01a3cb2f2
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">
ckridgway@34 18 {% if object_list %}
ckridgway@34 19 <ul class="review-list">
ckridgway@34 20 {% for review in object_list %}
ckridgway@45 21 <li id="review{{ review.id }}" class="review-list-item">
ckridgway@45 22 <blockquote {% if review.review_url %}cite="{{ review.review_url }}"{% endif %}>
ckridgway@34 23 <p>{{ review.review|safe }}</p>
ckridgway@34 24 <small>
ckridgway@34 25 {{ review.reviewer }}
ckridgway@34 26 {% if review.review_url %}
ckridgway@34 27 - <a href="{{ review.review_url }}"><em>{% if review.review_site %}{{ review.review_site }}{% else %}{{ review.review_url }}{% endif %}</em></a>
ckridgway@34 28 {% else %}{% if review.review_site %}
ckridgway@34 29 - <em>{{ review.review_site }}</em>
ckridgway@34 30 {% endif %}{% endif %}
ckridgway@34 31 </small>
ckridgway@34 32 </blockquote>
ckridgway@34 33 </li>
ckridgway@34 34 {% endfor %}
ckridgway@34 35 </ul>
ckridgway@34 36 {% else %}
ckridgway@34 37 Coming soon...
ckridgway@34 38 {% endif %}
ckridgway@16 39 {% endblock %}