Diary/templates/index.html
2014-05-30 21:58:42 +02:00

38 lines
1,023 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Diary</title>
<link rel="stylesheet" href="{{ url_for('static',filename='style.css') }}"/>
<script src="{{ url_for('static',filename='script.js') }}"></script>
</head>
<body>
<div class="dot centered">
<div id="mainContainer">
<div id="header">
<h1><a href="http://git.benary.org/Diary">Diary</a></h1>
<div id="logout">
<a href="{{ url_for('logout') }}">Logout</a>
</div>
</div>
<div id="contentContainer">
{% if error != '' %}
<div class="error">{{ error }}</div>
{% endif %}
<div id="listing">
{% for d in diaries %}
<a href="{{ url_for('diary',name=d.name) }}">
<div class="link">
{{ d.name }}
</div>
</a>
{% endfor %}
</div>
<form method="post" action="{{ url_for('newdiary')}}">
You can add a new diary, if you want: <input type="text" name="name" placeholder="name of diary"><input type="submit">
</form>
</div>
<div>
<div>
</body>
</html>