mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-22 23:56:29 +00:00
warning bar: add parameter to dis/enable it
This commit is contained in:
parent
e62d27ff9b
commit
fdab81e910
4 changed files with 12 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -113,6 +113,10 @@
|
|||
<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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue