view 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
line wrap: on
line source
{% extends 'base.html' %}
{% load core_tags %}
{% block title %}Reviews{% endblock %}

{% block custom_css %}
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css">
{% endblock %}
{% block custom_js %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
{% endblock %}

{% block content %}
{% navbar 'reviews' %}
<h1>Reviews</h1>

<div class="reviews">
<ul class="review-list">
{% for review in object_list %}
   <li class="review-list-item">
      <blockquote>
         <p>{{ review.review|safe }}</p>
         <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 %}
</ul>

{% endblock %}