# HG changeset patch # User Brian Neal # Date 1334271605 18000 # Node ID 15df2b1a0e8892262c941d7b4bca9dd044894b8f # Parent 2322664cf93468b0e3a15bd0b1f58ab5046db608 Articles page now displays an index with links to all articles. diff -r 2322664cf934 -r 15df2b1a0e88 madeira/articles/urls.py --- a/madeira/articles/urls.py Wed Apr 11 20:27:21 2012 -0500 +++ b/madeira/articles/urls.py Thu Apr 12 18:00:05 2012 -0500 @@ -12,7 +12,6 @@ url(r'^$', ListView.as_view( model=Article, - paginate_by=10, context_object_name='article_list'), name='articles-index'), url(r'^(?P\d+)/$', diff -r 2322664cf934 -r 15df2b1a0e88 madeira/templates/articles/article_detail.html --- a/madeira/templates/articles/article_detail.html Wed Apr 11 20:27:21 2012 -0500 +++ b/madeira/templates/articles/article_detail.html Thu Apr 12 18:00:05 2012 -0500 @@ -1,19 +1,22 @@ {% extends 'base.html' %} +{% load url from future %} {% block title %}The Madeira | Press | {{ article.title }}{% endblock %} {% block content %} -

{{ article.title }}

+

Madeira Press, Articles, & Reviews

+

{{ article.title }}

{{ article.text|safe }}
{{ article.source|safe }}
-{% if article.url %} -Original article -{% endif %} -{% if article.pdf and article.url %} -| -{% endif %} -{% if article.pdf %} -Original article as PDF - - Adobe Reader -{% endif %} +
+ {% if article.url or article.pdf %} + + {% endif %} +
+

« Back to press index

{% endblock %} diff -r 2322664cf934 -r 15df2b1a0e88 madeira/templates/articles/article_list.html --- a/madeira/templates/articles/article_list.html Wed Apr 11 20:27:21 2012 -0500 +++ b/madeira/templates/articles/article_list.html Thu Apr 12 18:00:05 2012 -0500 @@ -3,27 +3,12 @@ {% block content %}

Madeira Press, Articles, & Reviews

{% if article_list %} + {% else %} -

No articles at this time.

+

No articles at this time.

{% endif %} {% endblock %}