1
0
forked from ScoDoc/ScoDoc
ScoDoc-Front/app/templates/base.html

64 lines
2.0 KiB
HTML
Raw Normal View History

2021-05-29 18:22:51 +02:00
{% extends 'bootstrap/base.html' %}
2021-07-04 12:32:13 +02:00
{% block styles %}
{{super()}}
<link rel="stylesheet" href="/ScoDoc/static/css/scodoc.css">
{% endblock %}
2021-05-29 18:22:51 +02:00
{% block title %}
{% if title %}{{ title }} - ScoDoc{% else %}Welcome to ScoDoc{% endif %}
{% endblock %}
{% block navbar %}
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2021-07-04 12:32:13 +02:00
<a class="navbar-brand" href="{{ url_for('scodoc.index') }}">ScoDoc</a>
2021-05-29 18:22:51 +02:00
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
2021-08-17 22:11:35 +02:00
<li><a href="{{ url_for('scodoc.index') }}">Home</a></li>
2021-05-29 18:22:51 +02:00
</ul>
<ul class="nav navbar-nav navbar-right">
{% if current_user.is_anonymous %}
<li><a href="{{ url_for('auth.login') }}">Login</a></li>
{% else %}
<li>{{current_user.user_name}}</li>
2021-05-29 18:22:51 +02:00
<li><a href="{{ url_for('auth.logout') }}">Logout</a></li>
{% endif %}
</ul>
</div>
</div>
</nav>
{% endblock %}
{% block content %}
<div class="container">
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-info" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
{# application content needs to be provided in the app_content block #}
{% block app_content %}{% endblock %}
</div>
{% endblock %}
{% block scripts %}
{{ super() }}
{{ moment.include_moment() }}
{{ moment.lang(g.locale) }}
<script>
</script>
{% endblock %}