]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
warning bar: add parameter to dis/enable it 1369/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 19 Aug 2015 14:00:15 +0000 (16:00 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 19 Aug 2015 14:00:15 +0000 (16:00 +0200)
app/config/config.yml
app/config/parameters.yml.dist
src/Wallabag/CoreBundle/Resources/views/base.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css

index 1f5f744104617c669411600d16a2cb43ea0d8ae5..5b26b06fecf0d20f2132a4d220ada94556592db5 100644 (file)
@@ -45,6 +45,7 @@ twig:
         export_mobi: %export_mobi%
         export_pdf: %export_pdf%
         version: %app.version%
+        warning_message: %warning_message%
         paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
         flattr_url: "https://flattr.com/thing/1265480"
     form:
index 97933ec33a82729ce93281ecfddbf4d99cbadb29..b3947207a1a558ab06e4d2f299eca3deeb7eb923 100644 (file)
@@ -22,6 +22,10 @@ parameters:
     # wallabag misc
     app.version: 2.0.0-alpha
 
+    # message to display at the bottom of the page
+    warning_message: >
+        You're trying wallabag v2, which is in alpha version. If you find a bug, please have a look to <a href="https://github.com/wallabag/wallabag/issues">our issues list</a> and <a href="https://github.com/wallabag/wallabag/issues/new">open a new if necessary</a>
+
     download_pictures: false # if true, pictures will be stored into data/assets for each article
 
     # Entry view
index a6cba6cebec848f6a402a9985fcdbb2aebf81d4f..e27aceae492e658ade3ff47f2ed08802f3410836 100644 (file)
                 <p>{% trans %}powered by{% endtrans %} <a href="http://wallabag.org">wallabag</a></p>
             </footer>
         {% endblock %}
-        <div id="alphabar">You're trying wallabag v2, which is in alpha version. If you find a bug, please have a look to <a href="https://github.com/wallabag/wallabag/issues">our issues list</a> and <a href="https://github.com/wallabag/wallabag/issues/new">open a new if necessary</a>.</div>
+        {% if warning_message %}
+        <div id="warning_message">
+            {{ warning_message | raw }}
+        </div>
+        {% endif %}
     </body>
 </html>
index c812ed6f6f037c42fe18dc723128e2eda2141d01..52a2be809bab7a2d8054a8bcb32c17e38eecf42f 100755 (executable)
@@ -26,7 +26,7 @@ body {
     background: #f0f0f0;
 }
 
-#alphabar {
+#warning_message {
     position: fixed;
     background-color: #ff6347;
     z-index: 1000;
@@ -36,7 +36,7 @@ body {
     color: #000;
 }
 
-#alphabar a {
+#warning_message a {
     color: #555;
 }