2016-03-04 04:10:53 +00:00
|
|
|
{% extends "master.html" %}
|
|
|
|
{% block body %}
|
|
|
|
{% if session.logged_in %}
|
|
|
|
<form action="{{ url_for('add_entry') }}" method=post class=add-entry>
|
|
|
|
<dl>
|
|
|
|
<dt>Title:
|
|
|
|
<dd><input type=text size=30 name=title>
|
|
|
|
<dt>Text:
|
|
|
|
<dd><textarea name=text rows=5 cols=40></textarea>
|
|
|
|
<dd><input type=submit value=Share>
|
|
|
|
</dl>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2016-03-07 00:31:27 +00:00
|
|
|
<div class="section">
|
|
|
|
<h2>blog</h2>
|
2016-03-04 04:10:53 +00:00
|
|
|
{% for entry in entries %}
|
2016-03-07 00:31:27 +00:00
|
|
|
<div class="blog-entry">
|
|
|
|
<h3>{{ entry.title }}</h3>
|
|
|
|
<h5>{{ entry.updated }}</h5>
|
|
|
|
<p>{{ entry.text|safe }}</p>
|
|
|
|
</div>
|
2016-03-04 04:10:53 +00:00
|
|
|
{% else %}
|
2016-03-07 00:31:27 +00:00
|
|
|
<em>Sorry, I still haven't gotten around to moving my blog posts over!</em>
|
2016-03-04 04:10:53 +00:00
|
|
|
{% endfor %}
|
2016-03-06 02:27:52 +00:00
|
|
|
</div>
|
2016-03-04 04:10:53 +00:00
|
|
|
{% endblock %}
|