add a temporary warning on homepage
authorduong tam kien <tk@deveha.com>
Thu, 23 Feb 2017 16:21:22 +0100
changeset 365 c76e9c6e52ad
parent 363 5fd4fe61e1e1
child 366 51ce97e61018
add a temporary warning on homepage
src/iconolab/templates/iconolab/home.html
--- a/src/iconolab/templates/iconolab/home.html	Thu Feb 23 15:18:24 2017 +0100
+++ b/src/iconolab/templates/iconolab/home.html	Thu Feb 23 16:21:22 2017 +0100
@@ -6,26 +6,45 @@
 {% load iconolab_tags %}
 
 {% block content %}
-<div id="homepage-main">
-  <div id="main-panel" class="row">
+<div id="homepage-main" class="row">
+  <div id="main-panel" class="container">
+
+    <div class="row">
+
+    <div class="alert alert-warning" role="alert">
+
+    <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>
+
+    </div>
+
+    </div>
+
     {% for collection in collections_primary %}
-    <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>
+      {% 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>
-        <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>
+      {% endif %}
     {% endfor %}
   </div>
   {% for collection in collections_secondary %}
@@ -69,7 +88,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 %}