aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/layout.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2013-12-27 12:21:17 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2013-12-27 12:21:17 +0100
commit58de71cb09b70743a11e715b36797146e475718d (patch)
tree21888fd553e136d085fc694798cb4ef2abc5b5b2 /pyaggr3g470r/templates/layout.html
parentMinor fix in the template of unread articles. (diff)
downloadnewspipe-58de71cb09b70743a11e715b36797146e475718d.tar.gz
newspipe-58de71cb09b70743a11e715b36797146e475718d.tar.bz2
newspipe-58de71cb09b70743a11e715b36797146e475718d.zip
Flash messsages.
Diffstat (limited to 'pyaggr3g470r/templates/layout.html')
-rw-r--r--pyaggr3g470r/templates/layout.html21
1 files changed, 18 insertions, 3 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html
index d8f8790a..0d3f05a3 100644
--- a/pyaggr3g470r/templates/layout.html
+++ b/pyaggr3g470r/templates/layout.html
@@ -10,7 +10,8 @@
<title>{% if head_title %}{{ head_title }} - {% endif %}pyAggr3g470r</title>
<!-- Bootstrap core CSS -->
- <link href="/static/css/bootstrap.css" rel="stylesheet">
+ <link href="{{ url_for('.static', filename = 'css/bootstrap.css') }}" rel="stylesheet" media="screen" />
+ <link href="{{ url_for('.static', filename = 'css/bootstrap-responsive.css') }}" rel="stylesheet" />
<!-- Add custom CSS here -->
<style>
@@ -77,13 +78,27 @@
</div><!-- /.container -->
</nav>
+ {% with messages = get_flashed_messages(with_categories=true) %}
+ {% if messages %}
+ <!--<ul class=flashes>-->
+ {% for category, message in messages %}
+ <!--<li class="{{ category }}">-->
+ <div class="alert alert-{{category}}">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ {{ message }}
+ </div>
+ <!--</li>-->
+ {% endfor %}
+ <!--</ul>-->
+ {% endif %}
+ {% endwith %}
{% block content %}{% endblock %}
<!-- Bootstrap core JavaScript -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- Make sure to add jQuery - download the most recent version at http://jquery.com/ -->
- <script src="/static/js/jquery.js"></script>
- <script src="/static/js/bootstrap.js"></script>
+ <script src="{{ url_for('.static', filename = 'js/jquery.js') }}"></script>
+ <script src="{{ url_for('.static', filename = 'js/bootstrap.js') }}"></script>
</body>
</html>
bgstack15