X-Git-Url: http://git.datanom.net/flask-test.git/blobdiff_plain/db4f0ba9d4aec596f179335f1d86b3dd2bb206c6..163c4d87c8cefd45e8c8836daa28c53956be1e1a:/app/templates/index.html diff --git a/app/templates/index.html b/app/templates/index.html index 80a6eb3..de29694 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,8 +1,41 @@ + {% extends "base.html" %} + {% block content %} -

Hi, {{ user.nickname }}!

- {% for post in posts %} -

{{ post.author.nickname }} says: {{ post.body }}

+

Hi, {{ g.user.nickname }}!

+ {% include 'flash.html' %} +
+
+ {{ form.hidden_tag() }} +
+ +
+ {{ form.post(size=30, maxlength=140) }} + {% for error in form.errors.post %} + [{{ error }}]
+ {% endfor %} +
+
+
+
+ +
+
+
+
+ {% for post in posts.items %} + {% include 'post.html' %} {% endfor %} + {% endblock %} -