Diary/templates/index.html

39 lines
1 KiB
HTML
Raw Normal View History

2014-05-22 14:15:03 +00:00
<!DOCTYPE html>
<html>
<head>
2014-05-28 20:44:59 +00:00
<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>
2014-05-22 14:15:03 +00:00
</head>
<body>
2014-05-28 20:44:59 +00:00
<div class="dot centered">
<div id="mainContainer">
<div id="header">
<h1><a href="//github.com/benaryorg/Diary">Diary</a></h1>
2014-05-28 20:44:59 +00:00
<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')}}">
2014-05-30 20:11:55 +00:00
You can add a new diary, if you want: <input type="text" name="name" placeholder="name of diary" required><input type="submit">
2014-05-28 20:44:59 +00:00
</form>
</div>
<div>
<div>
2014-05-22 14:15:03 +00:00
</body>
</html>