Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "layout.html" %}
- {% block content %}
- <article class="media content-section">
- <div align="center">
- <div>
- <h1>Welcome to TheScholarSpace </h1>
- <div class="post-tabs">
- <ul class="nav nav-tabs">
- <li{% if not show_followed %} class="active"{% endif %}><a href="{{ url_for('main.show_all') }}">All | </a></li>
- {% if current_user.is_authenticated %}
- <li{% if show_followed %} class="active"{% endif %}><a href="{{ url_for('main.show_followed') }}"> Followers</a></li>
- {% endif %}
- </ul>
- {% for post in posts.items %}
- <article class="media content-section">
- <img class="rounded-circle article-img" src="{{ url_for('static', filename='profile_pics/' + post.author.image_file) }}">
- <div class="media-body">
- <div class="article-metadata">
- <a class="mr-2" href="{{ url_for('users.user_posts', username=post.author.username) }}">{{ post.author.username }}</a>
- <small class="text-muted">{{ post.date_posted.strftime('%Y-%m-%d') }}</small>
- </div>
- <h2><a class="article-title" href="{{ url_for('posts.post', post_id=post.id) }}">{{ post.title }}</a></h2>
- <p class="article-content">{{ post.content }}</p>
- </div>
- </article>
- {% endfor %}</div>
- </div>
- {% endblock content %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement