]> git.parisson.com Git - mezzo.git/commitdiff
Update project list template
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 10 Oct 2016 13:31:26 +0000 (15:31 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 10 Oct 2016 13:31:26 +0000 (15:31 +0200)
app/templates/pages/teampage.html

index 6cea12a8e4651929dd8d6e73e54d001e3c52cec7..95ca377fc8e15ee706c16fbd914b5c20c84ef8b3 100644 (file)
 
 {% block related_project %}
     {% if page.teampage.team.leader_projects.all or page.teampage.team.partner_projects.all %}
-        <hr class="mt0" />
-        <h4>{% trans "European and national projects" %}</h4>
-        {% with page.teampage.team.leader_projects.all|get_type:"external" as projects %}
-            {% include 'projects/inc/project_list.html' %}
-        {% endwith %}
-        {% with page.teampage.team.partner_projects.all|get_type:"external" as projects %}
-            {% include 'projects/inc/project_list.html' %}
-        {% endwith %}
-        {% if page.teampage.product_lists.all %}
-            <h4>{% trans "Products" %}</h4>
-            {% for page_product_list in page.teampage.product_lists.all %}
-              {% with page_product_list.list as list %}
-                {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %}
-                  {% include template %}
-                {% endwith %}
-              {% endwith %}
-            {% endfor %}
-        {% endif %}
+        <div class="white-bg pb2">
+            <hr class="mt0" />
+            <div class="container">
+                <div class="row">
+                    <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg">
+                        <h2>{% trans "European and national projects" %}</h2>
+                        {% with page.teampage.team.leader_projects.all|get_type:"external" as projects %}
+                            {% include 'projects/inc/project_list.html' %}
+                        {% endwith %}
+                        {% with page.teampage.team.partner_projects.all|get_type:"external" as projects %}
+                            {% include 'projects/inc/project_list.html' %}
+                        {% endwith %}
+                    </div>
+                </div>
+            </div>
+            {% if page.teampage.product_lists.all %}
+                <h4>{% trans "Products" %}</h4>
+                {% for page_product_list in page.teampage.product_lists.all %}
+                  {% with page_product_list.list as list %}
+                    {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %}
+                      {% include template %}
+                    {% endwith %}
+                  {% endwith %}
+                {% endfor %}
+            {% endif %}
+        </div>
     {% endif %}
 {% endblock %}