]> git.parisson.com Git - mezzo.git/commitdiff
Home : moving shutter card
authorEmilie <zawadzki@ircam.fr>
Fri, 19 Aug 2016 16:12:50 +0000 (18:12 +0200)
committerEmilie <zawadzki@ircam.fr>
Fri, 19 Aug 2016 16:12:50 +0000 (18:12 +0200)
app/templates/core/inc/home_shutter_card.html [deleted file]
app/templates/home/inc/shutter_card.html [new file with mode: 0644]
app/templates/pages/menus/magazine.html

diff --git a/app/templates/core/inc/home_shutter_card.html b/app/templates/core/inc/home_shutter_card.html
deleted file mode 100644 (file)
index 58a25ba..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<a href="{% url url_pattern slug %}" title="">
-  <h2>{{ title }}</h2>
-  <p>{{ description|truncatechars:100 }}</p>
-</a>
diff --git a/app/templates/home/inc/shutter_card.html b/app/templates/home/inc/shutter_card.html
new file mode 100644 (file)
index 0000000..58a25ba
--- /dev/null
@@ -0,0 +1,4 @@
+<a href="{% url url_pattern slug %}" title="">
+  <h2>{{ title }}</h2>
+  <p>{{ description|truncatechars:100 }}</p>
+</a>
index 86288582629cb5b9d7a4d097c39a195805782f6f..f94df3107bbd7492274a476a310438909835bddb 100644 (file)
@@ -5,7 +5,7 @@
 {% if page_branch_in_menu %}
     {% for page in page_branch %}
         {% if page.in_menu %}
-        {% include "core/inc/home_shutter_card.html" with title=page.title description=page.description url_pattern=page.content_model|add:"-detail" slug=page.slug %}
+        {% include "home/inc/shutter_card.html" with title=page.title description=page.description url_pattern=page.content_model|add:"-detail" slug=page.slug %}
         {% endif %}
     {% endfor %}
 {% endif %}