aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/layout.html
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-10-12 22:36:01 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 23:46:32 +0100
commit2c0e17cb977a1e8782799b337df8b1583d019906 (patch)
tree75563e440e9eac14950fa1a71a83e64df20e52d0 /src/web/templates/layout.html
parentfixing sqlalchemy resolving warning (diff)
downloadnewspipe-2c0e17cb977a1e8782799b337df8b1583d019906.tar.gz
newspipe-2c0e17cb977a1e8782799b337df8b1583d019906.tar.bz2
newspipe-2c0e17cb977a1e8782799b337df8b1583d019906.zip
bootstraping react
Diffstat (limited to 'src/web/templates/layout.html')
-rw-r--r--src/web/templates/layout.html53
1 files changed, 18 insertions, 35 deletions
diff --git a/src/web/templates/layout.html b/src/web/templates/layout.html
index eb213ca5..db5b6589 100644
--- a/src/web/templates/layout.html
+++ b/src/web/templates/layout.html
@@ -7,12 +7,12 @@
<meta name="description" content="JARR is a web-based news aggregator." />
<meta name="author" content="" />
<title>JARR{% if head_titles %} - {{ ' - '.join(head_titles) }}{% endif %}</title>
- <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" />
+ <link rel="shortcut icon" href="{{ url_for("static", filename="img/favicon.png") }}" />
<!-- Bootstrap core CSS -->
- <link href="{{ url_for('static', filename='css/bootstrap.css') }}" rel="stylesheet" media="screen" />
+ <link href="{{ url_for("static", filename="css/bootstrap.min.css") }}" rel="stylesheet" media="screen" />
<!-- Add custom CSS here -->
- <link href="{{ url_for('static', filename='css/customized-bootstrap.css') }}" rel="stylesheet" media="screen" />
- <link href="{{ url_for('static', filename='css/side-nav.css') }}" rel="stylesheet" media="screen" />
+ <link href="{{ url_for("static", filename="css/customized-bootstrap.css") }}" rel="stylesheet" media="screen" />
+ <link href="{{ url_for("static", filename="css/side-nav.css") }}" rel="stylesheet" media="screen" />
{% endblock %}
</head>
<body>
@@ -125,42 +125,25 @@
<br />
<div class="container not-at-home">
- {% block messages %}
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- {% for category, message in messages %}
- <div class="alert alert-{{category}}">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- {{ message }}
- </div>
- {% endfor %}
- {% endif %}
- {% endwith %}
- {% endblock %}
+ {% block messages %}
+ {% with messages = get_flashed_messages(with_categories=true) %}
+ {% if messages %}
+ {% for category, message in messages %}
+ <div class="alert alert-{{category}}">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ {{ message }}
+ </div>
+ {% endfor %}
+ {% endif %}
+ {% endwith %}
+ {% endblock %}
</div>
{% block content %}{% endblock %}
<!-- Bootstrap core JavaScript -->
<!-- Placed at the end of the document so the pages load faster -->
- <script type="text/javascript" src="{{ url_for('static', filename = 'js/jquery.js') }}"></script>
- <script type="text/javascript" src="{{ url_for('static', filename = 'js/bootstrap.js') }}"></script>
- <script type="text/javascript" src="{{ url_for('static', filename = 'js/articles.js') }}"></script>
- <script type="text/javascript" src="{{ url_for('static', filename = 'js/feed.js') }}"></script>
- <script type="text/javascript" class="source">
- var filter_ = {% if filter_ %}"{{ filter_ }}"{% else %}undefined{% endif %};
- if (filter_ == undefined) {
- if (window.location.href.indexOf("filter_=all") > -1){
- filter_ = 'all';
- }
- else if (window.location.href.indexOf("filter_=unread") > -1) {
- filter_ = 'unread';
- }
- else if (window.location.href.indexOf("filter_=read") > -1) {
- filter_ = 'read';
- }
- }
- $("#tab-" + filter_).attr('class', "active");
- </script>
+ <script type="text/javascript" src="{{ url_for("static", filename="js/jquery.js") }}"></script>
+ <script type="text/javascript" src="{{ url_for("static", filename="js/bootstrap.min.js") }}"></script>
</body>
</html>
bgstack15