Files
microblog/app/templates/index.html
2023-06-04 02:57:16 +02:00

709 B

{% extends 'base.html' %} {% block content %}

Hi, {{ current_user.username }}!

{% if form %} {{ form.hidden_tag() }}

{{ form.post.label }}
{{ form.post(cols = 32, rows = 4) }}
{% for error in form.post.errors %} [{{ error }}] {% endfor %}

{{ form.submit() }}

{% endif %} {% for post in posts %} {% include '_post.html' %} {% endfor %} {% if prev_url %} Newer posts {% endif %} {% if next_url %} Older posts {% endif %} {% endblock %}s