From: Guillaume Pellerin Date: Wed, 6 May 2015 23:42:59 +0000 (+0200) Subject: fix template X-Git-Tag: 1.6a~4^2~84 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5c00d4d985b9d0131bc7a829216e9b3e18d4ba48;p=telemeta.git fix template --- diff --git a/telemeta/management/commands/telemeta-import-corpus-from-dir.py b/telemeta/management/commands/telemeta-import-corpus-from-dir.py index ee9cf108..60d06c29 100644 --- a/telemeta/management/commands/telemeta-import-corpus-from-dir.py +++ b/telemeta/management/commands/telemeta-import-corpus-from-dir.py @@ -50,7 +50,7 @@ class Command(BaseCommand): def handle(self, *args, **options): # NOT4PROD!! - reset() + # reset() root_dir = args[-1] cleanup_dir(root_dir) diff --git a/telemeta/templates/telemeta/inc/collection_epub.html b/telemeta/templates/telemeta/inc/collection_epub.html new file mode 100644 index 00000000..37020245 --- /dev/null +++ b/telemeta/templates/telemeta/inc/collection_epub.html @@ -0,0 +1,24 @@ + + +

{{ collection.title }}

+ +{% for item in items %} +
+

+ Son {{ item.old_code }} : {{ item.title }}. {{ item.comment }} ({{ item.track }}) +

+ +
+ +
+ + {% for image in item.related.all %} + {% if 'image' in image.mime_type %} +
+ +
+ {% endif %} + {% endfor %} + +
+{% endfor %}