coriplus/templates/base.html

44 lines
1.6 KiB
HTML
Raw Normal View History

2019-05-01 15:33:28 +02:00
<!DOCTYPE html>
<html>
<head>
{% set site_name = "Cori+" %}
<title>{{ site_name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2019-05-01 15:33:28 +02:00
<link rel="stylesheet" type="text/css" href="/static/style.css">
<meta name="og:title" content="Cori+">
<meta name="og:description" content="A simple social network. Post text statuses, optionally with image.">
2019-05-01 15:33:28 +02:00
</head>
<body>
<div class="header">
<h1><a href="{{ url_for('homepage') }}">{{ site_name }}</a></h1>
2019-05-01 15:33:28 +02:00
<div class="metanav">
{% if not session.logged_in %}
<a href="{{ url_for('login') }}">log in</a>
<a href="{{ url_for('register') }}">register</a>
{% else %}
2019-05-22 18:25:08 +02:00
<a href="{{ url_for('user_detail', username=current_user.username) }}">{{ current_user.username }}</a>
{% set notification_count = current_user.unseen_notification_count() %}
{% if notification_count > 0 %}
<a href="{{ url_for('notifications') }}">({{ notification_count }})</a>
{% endif %}
-
<a href="{{ url_for('public_timeline') }}">explore</a>
2019-05-01 15:33:28 +02:00
<a href="{{ url_for('create') }}">create</a>
<a href="{{ url_for('logout') }}">log out</a>
{% endif %}
</div>
</div>
<div class="content">
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
2019-05-01 15:33:28 +02:00
{% endfor %}
{% block body %}{% endblock %}
</div>
2019-10-10 19:43:02 +02:00
<div class="footer">
<p class="copyright">&copy; 2019 Sakuragasaki46.
<a href="/about/">About</a></p>
</div>
2019-05-01 15:33:28 +02:00
<script src="/static/lib.js"></script>
</body>
</html>