diff options
-rw-r--r-- | app/config/config.yml | 1 | ||||
-rw-r--r-- | app/config/parameters.yml.dist | 4 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/base.html.twig | 5 | ||||
-rwxr-xr-x | src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css | 14 |
4 files changed, 24 insertions, 0 deletions
diff --git a/app/config/config.yml b/app/config/config.yml index 1f5f7441..5b26b06f 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -45,6 +45,7 @@ twig: | |||
45 | export_mobi: %export_mobi% | 45 | export_mobi: %export_mobi% |
46 | export_pdf: %export_pdf% | 46 | export_pdf: %export_pdf% |
47 | version: %app.version% | 47 | version: %app.version% |
48 | warning_message: %warning_message% | ||
48 | paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" | 49 | paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" |
49 | flattr_url: "https://flattr.com/thing/1265480" | 50 | flattr_url: "https://flattr.com/thing/1265480" |
50 | form: | 51 | form: |
diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index 97933ec3..b3947207 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist | |||
@@ -22,6 +22,10 @@ parameters: | |||
22 | # wallabag misc | 22 | # wallabag misc |
23 | app.version: 2.0.0-alpha | 23 | app.version: 2.0.0-alpha |
24 | 24 | ||
25 | # message to display at the bottom of the page | ||
26 | warning_message: > | ||
27 | 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> | ||
28 | |||
25 | download_pictures: false # if true, pictures will be stored into data/assets for each article | 29 | download_pictures: false # if true, pictures will be stored into data/assets for each article |
26 | 30 | ||
27 | # Entry view | 31 | # Entry view |
diff --git a/src/Wallabag/CoreBundle/Resources/views/base.html.twig b/src/Wallabag/CoreBundle/Resources/views/base.html.twig index c381a08c..e27aceae 100644 --- a/src/Wallabag/CoreBundle/Resources/views/base.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/base.html.twig | |||
@@ -113,5 +113,10 @@ | |||
113 | <p>{% trans %}powered by{% endtrans %} <a href="http://wallabag.org">wallabag</a></p> | 113 | <p>{% trans %}powered by{% endtrans %} <a href="http://wallabag.org">wallabag</a></p> |
114 | </footer> | 114 | </footer> |
115 | {% endblock %} | 115 | {% endblock %} |
116 | {% if warning_message %} | ||
117 | <div id="warning_message"> | ||
118 | {{ warning_message | raw }} | ||
119 | </div> | ||
120 | {% endif %} | ||
116 | </body> | 121 | </body> |
117 | </html> | 122 | </html> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css b/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css index 81ea598c..52a2be80 100755 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css | |||
@@ -26,6 +26,20 @@ body { | |||
26 | background: #f0f0f0; | 26 | background: #f0f0f0; |
27 | } | 27 | } |
28 | 28 | ||
29 | #warning_message { | ||
30 | position: fixed; | ||
31 | background-color: #ff6347; | ||
32 | z-index: 1000; | ||
33 | bottom: 0; | ||
34 | left: 0; | ||
35 | width: 100%; | ||
36 | color: #000; | ||
37 | } | ||
38 | |||
39 | #warning_message a { | ||
40 | color: #555; | ||
41 | } | ||
42 | |||
29 | .border-bottom { | 43 | .border-bottom { |
30 | border-bottom: 1px solid #DDD; | 44 | border-bottom: 1px solid #DDD; |
31 | } | 45 | } |