add flask-bootstrap

This commit is contained in:
neingeist 2018-11-10 21:12:52 +01:00
parent 5358ea95d6
commit c56c1226d3
5 changed files with 14 additions and 25 deletions

View file

@ -1,23 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Prolefeeder</title>
</head>
<body>
<div>
<a href="{{ url_for('index') }}">Home</a>
<a href="{{ url_for('download') }}">Download</a>
</div>
<hr>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</body>
</html>
{% extends "bootstrap/base.html" %}
{% block title %}Prolefeeder{% endblock %}
{% block content %}
<div class="container">
{% block app_content %}
{% endblock %}
</div>
{% endblock %}

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block content %}
{% block app_content %}
<h1>Download</h1>
<form action="" method="post" novalidate>
{{ form.hidden_tag() }}

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block content %}
{% block app_content %}
<h1>Hello!</h1>
{% endblock %}