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

37 lines
1,020 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Diary {{ diary.name }}</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 {{ diary.name }}</a></h1>
<div id="logout">
<a href="{{ url_for('logout') }}">Logout</a><br />
<a href="{{ url_for('index') }}">Diary-List</a>
</div>
</div>
<div id="contentContainer">
<form action="{{ url_for('addentry',name=diary.name) }}" method="POST">
Add new entry:<br />
<textarea name="text" style="width:99%;height:150px;"></textarea><br/>
<input type="submit">
</form>
<div id="listing">
{% for e in entries %}
<div>
<div>{{ e.date }}</div>
<p>{{ e.text }}</p>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</body>
</html>