Eos/eosweb/core/templates/base.html

47 lines
1.7 KiB
HTML
Raw Normal View History

2017-11-22 19:19:26 +11:00
{% extends 'semantic_base.html' %}
{#
Eos - Verifiable elections
Copyright © 2017 RunasSudo (Yingtong Li)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}" type="text/css">
{% endblock %}
{% block basecontent %}
<div class="ui fixed inverted menu" style="margin-right: 1.5em;">
<div class="ui container">
2017-11-26 11:16:57 +11:00
<a href="/" class="header item">Eos Voting for {{ eosweb.app.config['ORG_NAME'] }}</a>
<a href="https://github.com/RunasSudo/Eos" class="item">Source Code</a>
2017-11-25 22:37:54 +11:00
{% if session.user %}
<div class="ui simple dropdown item right">
2017-11-26 20:48:15 +11:00
{{ session.user.name }} <i class="dropdown icon"></i>
2017-11-25 22:37:54 +11:00
<div class="menu">
<a href="{{ url_for('logout') }}?next={{ request.full_path|urlencode }}" class="item">Log out</a>
</div>
</div>
{% else %}
<a href="{{ url_for('login') }}" class="item right">Log in</a>
{% endif %}
2017-11-22 19:19:26 +11:00
</div>
</div>
2017-11-24 00:17:53 +11:00
<div class="ui main text container" id="main_container">
2017-11-22 19:19:26 +11:00
{% block content %}
{% endblock content %}
</div>
{% endblock %}