# HG changeset patch # User Brian Neal # Date 1382221105 18000 # Node ID 23efa49f5e29038975f1715f1842db0e7b336ea0 # Parent 03f51d405400d6b135a95678e927a6d574999bdf Bootstrap: flyers page. diff -r 03f51d405400 -r 23efa49f5e29 gigs/urls.py --- a/gigs/urls.py Sat Oct 19 14:20:02 2013 -0500 +++ b/gigs/urls.py Sat Oct 19 17:18:25 2013 -0500 @@ -14,6 +14,7 @@ ListView.as_view( queryset=Gig.objects.exclude(flyer__isnull=True).select_related('flyer'), template_name='gigs/flyers.html', + paginate_by=10, context_object_name='gig_list'), name='gigs-flyers') ) diff -r 03f51d405400 -r 23efa49f5e29 madeira/templates/gigs/flyers.html --- a/madeira/templates/gigs/flyers.html Sat Oct 19 14:20:02 2013 -0500 +++ b/madeira/templates/gigs/flyers.html Sat Oct 19 17:18:25 2013 -0500 @@ -1,19 +1,23 @@ {% extends 'base.html' %} +{% load core_tags %} {% block title %}The Madeira | Flyer Gallery{% endblock %} +{% block navblock %}{% navbar 'flyers' %}{% endblock %} {% block content %}

Show Flyer Gallery

{% if gig_list %} -
+ {% include 'pagination.html' %} {% for gig in gig_list %} -

+

{% if gig.title %} - {{ gig.title }} + {{ gig.title }} {% else %} - {{ gig.date|date: + {{ gig.date|date: {% endif %} -

+
{% endfor %} -
+ {% include 'pagination.html' %} {% else %}

No flyers available at this time.

{% endif %} diff -r 03f51d405400 -r 23efa49f5e29 madeira/templates/pagination.html --- a/madeira/templates/pagination.html Sat Oct 19 14:20:02 2013 -0500 +++ b/madeira/templates/pagination.html Sat Oct 19 17:18:25 2013 -0500 @@ -1,15 +1,23 @@ -