view gpp/templates/news/index.html @ 480:1a7ca5fa494f

Fixing #229: Download details view with a bogus download ID produces internal server error isntead of a 404.
author Brian Neal <bgneal@gmail.com>
date Wed, 05 Oct 2011 00:09:30 +0000
parents 88b2b9cb8c1f
children bbbc357ac5f3
line wrap: on
line source
{% extends 'news/base.html' %}
{% block title %}News: {{ title }}{% endblock %}
{% block news_css %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" />
{% endblock %}
{% block news_content %}
<h3>{{ title }}</h3>

{% if page.object_list %}
{% include 'core/pagination.html' %}
{% for story in page.object_list %}
   {% include 'news/story_summary.html' %}
{% endfor %}
{% include 'core/pagination.html' %}
<div style="clear:right;"></div>
{% else %}
   <p>No news at this time.</p>
{% endif %}

{% endblock %}