Mercurial > public > sg101
annotate gpp/templates/downloads/commands/category_report.html @ 527:645025056dfa
Adding some management commands to the downloads application to help manage
the SG101 MP3 compilations. Added a command to generate a HTML report of all
the downloads in a given category. Added a command that generates a bash
script that wgets all the files in a category.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 21 Dec 2011 01:08:21 +0000 |
parents | |
children | 311c926dd218 |
rev | line source |
---|---|
bgneal@527 | 1 <!DOCTYPE html> |
bgneal@527 | 2 <html lang="en"> |
bgneal@527 | 3 <head> |
bgneal@527 | 4 <title>Download Report: {{ category.title }}</title> |
bgneal@527 | 5 </head> |
bgneal@527 | 6 <body> |
bgneal@527 | 7 <h1>Download Report: {{ category.title }}</h1> |
bgneal@527 | 8 {% for dl in downloads %} |
bgneal@527 | 9 <h2>{{ dl.title }}</h2> |
bgneal@527 | 10 <p><em>Uploaded by {{ dl.user.username }}.</em></p> |
bgneal@527 | 11 <div>{{ dl.html|safe }}</div> |
bgneal@527 | 12 {% endfor %} |
bgneal@527 | 13 </body> |
bgneal@527 | 14 </html> |