12345678910111213141516171819202122232425 |
- {% include 'parts/header.html' %}
- <main class="container">
- {% include 'parts/author_list.html' %}
- <h1>New posts</h1>
- {% for post in posts %}
- <div class="posts">
- <div class="card mycard">
- <h5 class="card-header">{{ post.title }}</h5>
- <div class="card-body">
- <h5 class="card-title">
- By {{ users.get_user_by_id(post.user_id).username }}
- </h5>
- <h5 class="card-title">POST ID: {{ post.id }}</h5>
- <p class="card-text">{{ post.body }}</p>
- <a href="{{ url_for('get_post', post_id=post.id) }}" class=""
- >Read post >></a
- >
- </div>
- </div>
- </div>
- {% endfor %} {% include 'parts/pagination.html' %}
- </main>
- {% include 'parts/footer.html' %}
|