]> git.parisson.com Git - mezzo.git/commitdiff
Add page files template
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 3 Oct 2016 09:54:58 +0000 (11:54 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 3 Oct 2016 09:54:58 +0000 (11:54 +0200)
app/templates/core/inc/files.html
app/templates/pages/page.html

index 619df9a2ee40fe1cf71b677264e741b65e171df8..8127a6882491d8aab081dccd7d9cebb1ac5589b9 100644 (file)
@@ -1,6 +1,17 @@
 {% load i18n %}
+<p>
+    <strong>{% trans "Downloads" %}</strong>
+</p>
+<ul class="unstyled-list fss">
 {% for file in files %}
-    <h3>{{ file.title }}</h3>
-    <p>{{ file.description }}</p>
-    <a href="{{ file.file.url }}" class="button button--small">{% trans "download" %}</a>
+    <li>
+        <a href="{{ file.file.url }}" class=""><i class="fa fa-download"></i> {{ file.title }}</a>
+        {% if file.description %}
+            <br />
+            <p>
+                {{ file.description }}
+            </p>
+        {% endif %}
+    </li>
 {% endfor %}
+</ul>
index 1cc12abcaa3403a1e6f6515f3079663708ae8ad5..cc2a3a4a5e916bbcf183c0ec2ce32fbe95f092aa 100644 (file)
                             {% endif %}
                         {% endwith %}
                     {% endblock %}
+                    {% block page_file %}
+                        {% with object.files.all as files %}
+                            {% if files %}
+                                {% include 'core/inc/files.html' %}
+                            {% endif %}
+                        {% endwith %}
+                    {% endblock %}
                     {% block page_audio %}
                         {% with object.audios.all as audios %}
                             {% if audios %}
         {% endblock %}
         {% block page_person_list %}
         {% endblock %}
-        {% block page_file %}
-            {% with object.files.all as files %}
-                {% if files %}
-                    {% include 'core/inc/files.html' %}
-                {% endif %}
-            {% endwith %}
-        {% endblock %}
         {% block products %}
         {% endblock %}
         {% block page_sub_content %}