rolling back to correct home revision
authorduong tam kien <tk@deveha.com>
Thu, 23 Feb 2017 16:48:58 +0100
changeset 367 e1762995780b
parent 366 51ce97e61018
child 368 fa0393f81302
child 376 3d48f9520c8d
rolling back to correct home revision
src/iconolab/templates/iconolab/home.html
--- a/src/iconolab/templates/iconolab/home.html	Thu Feb 23 16:33:38 2017 +0100
+++ b/src/iconolab/templates/iconolab/home.html	Thu Feb 23 16:48:58 2017 +0100
@@ -6,45 +6,37 @@
 {% load iconolab_tags %}
 
 {% block content %}
-<div id="homepage-main" class="row">
-  <div id="main-panel" class="container">
+<div id="homepage-main">
+  <div id="main-panel" class="row">
 
     <div class="row">
-
-    <div class="alert alert-warning" role="alert">
+      <div class="alert alert-warning" role="alert">
+        <p><strong>Bienvenue sur iconolab. La plateforme
+        est actuellement en cours de développement.</strong></p>
 
-    <p><strong>Bienvenue sur iconolab. La plateforme
-    est actuellement en cours de développement.</strong></p>
+        <p>La première phase d'expérimentation démarrera mi-mars 2017. Pour plus d'informations, prière de contacter <a href="mailto:iconolab@gmail.com">iconolab at gmail.com</a>.</p>
 
-    <p>La première phase d'expérimentation démarrera mi-mars 2017. Pour plus d'informations, prière de contacter <a href="mailto:iconolab@gmail.com">iconolab at gmail.com</a>.</p>
-
-    </div>
-
+      </div>
     </div>
 
     {% for collection in collections_primary %}
-      {% if not forloop.counter|divisibleby:2 %}
-        <div class="row" style="margin-bottom:25px;">
-          <div class="col-md-1"></div>
-      {% endif %}
-            <div class="col-md-5">
-              {% thumbnail collection.image "450x250" crop="center" as im %}
-                <div class="home-main-button-container">
-                  <a class="btn btn-default btn-primary btn-lg home-main-button" href="{% url 'collection_home' collection.name %}">{{collection.verbose_name}}</a>
-                </div>
-                <div>
-                  <a href="{% url 'collection_home' collection.name %}">
-                    <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
-                  </a>
-                </div>
-              {% endthumbnail %}
-            </div>
-      {% if forloop.counter|divisibleby:2 %}
-          <div class="col-md-1"></div>
-          </div>
-      {% elif forloop.last %}
+    <div class="col-md-3">
+      <div>
+        {% thumbnail collection.image "450x250" crop="center" as im %}
+        <div>
+          <a href="{% url 'collection_home' collection.name %}">
+            <img src="{{ im.url }}" class="img-responsive">
+          </a>
         </div>
-      {% endif %}
+        <h4 class="text-center">{{collection.verbose_name}}</h4>
+        <a class="btn btn-default btn-primary btn-block" href="{% url 'collection_home' collection.name %}">
+          Contribuer
+        </a>
+        <hr>
+        <p>{{collection.description|safe}}</p>
+        {% endthumbnail %}
+      </div>
+    </div>
     {% endfor %}
   </div>
   {% for collection in collections_secondary %}
@@ -88,7 +80,7 @@
 
 {% block footer_js %}
 <script>
-	_v = new Vue(iconolab.CollectionSelector);
-	_v.$mount("#homepage-main");
+  _v = new Vue(iconolab.CollectionSelector);
+  _v.$mount("#homepage-main");
 </script>
 {% endblock %}