{% extends "layout.html" %} {% block content %}

The Discussion Board

{% if current_user.is_authenticated %} Create a Post! {% else %}

Not signed in? To contribute, either register or login!

{% endif %} {% for post in posts %}

{{ post.title }}

by {{ post.user.username }}

{{post.date}}

{{ post.content }}

{% if post.author_id == current_user.id %}
{% endif %}
{% endfor %} {% endblock content %}