calendar-social/calsocial/templates/base.html

54 lines
2.2 KiB
HTML
Raw Normal View History

2018-06-26 05:23:53 +00:00
<!DOCTYPE html>
<html>
<head>
<title>Calendar.Social</title>
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', filename='images/calendar-social-icon-16.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='images/calendar-social-icon-32.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='images/calendar-social-icon-96.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='images/calendar-social-icon-192.png') }}">
2018-06-26 05:23:53 +00:00
{% block head %}
<style>
header > h1 > img {
height: 1em;
}
2018-06-26 05:23:53 +00:00
footer {
margin-top: 3em;
font-weight: bold;
border-top: 1px dotted black;
padding-top: 1em;
}
</style>
{% endblock %}
</head>
<body>
<header>
<h1>
<img src="{{ url_for('static', filename='images/calendar-social-icon.svg') }}">
Calendar.social
</h1>
2018-06-29 06:03:49 +00:00
<nav class="menu">
{% if current_user.is_authenticated %}
2018-07-09 07:57:23 +00:00
{{ _('Logged in as %(username)s', username=('<a href="' + url_for('display_profile', username=current_user.username) + '">' + current_user.username + '</a>') | safe) }}
{% endif %}
2018-06-29 06:03:49 +00:00
<ul>
{% if not current_user.is_authenticated %}
<li><a href="{{ url_for('security.login') }}">{% trans %}Login{% endtrans %}</a></li>
{% else %}
2018-06-30 04:44:45 +00:00
<li><a href="{{ url_for('hello') }}">{% trans %}Calendar view{% endtrans %}</a></li>
2018-07-10 08:28:39 +00:00
<li><a href="{{ url_for('notifications') }}">{% trans %}Notifications{% endtrans %}</a></li>
2018-07-03 11:15:17 +00:00
<li><a href="{{ url_for('settings') }}">{% trans %}Settings{% endtrans %}</a></li>
2018-07-10 08:28:39 +00:00
<li><a href="{{ url_for('security.logout') }}">{% trans %}Logout{% endtrans %}</a></li>
2018-06-29 06:03:49 +00:00
{% endif %}
</ul>
</nav>
2018-06-26 05:23:53 +00:00
</header>
{% block content %}{% endblock %}
<footer>
Soon…™
</footer>
{% block scripts %}{% endblock %}
</body>
</html>