Create base html and inherit

master
Neslihan 4 years ago
parent ea6ad54f79
commit ffb8fe1f4f
  1. 19
      app/templates/base.html

@ -22,6 +22,25 @@
</head>
<body>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class=flashes>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% block body %}{% endblock %}
<div>
Microblog:
<a href="{{ url_for('index') }}">Home</a>
{% if current_user.is_anonymous %}
<a href="{{ url_for('login') }}">Login</a>
{% else %}
<a href="{{ url_for('logout') }}">Logout</a>
{% endif %}
</div>
<div class="container" align="center">
<div class="jumbotron text-center" style="width: 50% ;">

Loading…
Cancel
Save