This commit is contained in:
overflowerror 2014-05-28 22:45:38 +02:00
parent 5ff6528a69
commit 6ece6401b2
2 changed files with 0 additions and 78 deletions

View file

@ -1,39 +0,0 @@
<!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>Diary {{ diary.name }}</h1>
<div id="logout">
<a href="{{ url_for('logout') }}">Logout</a>
<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"></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>

View file

@ -1,39 +0,0 @@
<!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>Diarys</h1>
<div id="logout">
<a href="{{ url_for('logout') }}">Logout</a>
<a href="{{ url_for('index') }}">Diary-List</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>