]> git.parisson.com Git - telemeta.git/commitdiff
fix template
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 6 May 2015 23:42:59 +0000 (01:42 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 6 May 2015 23:42:59 +0000 (01:42 +0200)
telemeta/management/commands/telemeta-import-corpus-from-dir.py
telemeta/templates/telemeta/inc/collection_epub.html [new file with mode: 0644]

index ee9cf108a98cc594da0e52357e6ae56b79c9e463..60d06c2946d94e89af92878c0e6894ce88b7c032 100644 (file)
@@ -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 (file)
index 0000000..3702024
--- /dev/null
@@ -0,0 +1,24 @@
+<link rel="stylesheet" type="text/css" href="style/nav.css" />
+
+<h2>{{ collection.title }}</h2>
+
+{% for item in items %}
+<div class="item">
+  <h3>
+  <b>Son {{ item.old_code }}</b> : {{ item.title }}. {{ item.comment }} ({{ item.track }})
+  </h3>
+
+  <div class="item-audio">
+   <audio class="item-player" src="{{ item.file }}" controls="controls"></audio>
+  </div>
+
+  {% for image in item.related.all %}
+    {% if 'image' in image.mime_type %}
+       <div class="item-image">
+        <img src="{{ image.file }}"/>
+       </div>
+    {% endif %}
+   {% endfor %}
+
+</div>
+{% endfor %}