SHARE
TWEET

Untitled

ouchak1 Oct 11th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% extends "layout.html" %}
  2. {% block content %}
  3.  
  4.  
  5.  <article class="media content-section">
  6. <div align="center">
  7. <div>
  8. <h1>Welcome to TheScholarSpace </h1>
  9.  
  10. <div class="post-tabs">
  11.     <ul class="nav nav-tabs">
  12.         <li{% if not show_followed %} class="active"{% endif %}><a href="{{ url_for('main.show_all') }}">All | </a></li>
  13.         {% if current_user.is_authenticated %}
  14.         <li{% if show_followed %} class="active"{% endif %}><a href="{{ url_for('main.show_followed') }}"> Followers</a></li>
  15.         {% endif %}
  16.     </ul>
  17.     {% for post in posts.items %}
  18.         <article class="media content-section">
  19.           <img class="rounded-circle article-img" src="{{ url_for('static', filename='profile_pics/' + post.author.image_file) }}">
  20.           <div class="media-body">
  21.             <div class="article-metadata">
  22.               <a class="mr-2" href="{{ url_for('users.user_posts', username=post.author.username) }}">{{ post.author.username }}</a>
  23.               <small class="text-muted">{{ post.date_posted.strftime('%Y-%m-%d') }}</small>
  24.             </div>
  25.             <h2><a class="article-title" href="{{ url_for('posts.post', post_id=post.id) }}">{{ post.title }}</a></h2>
  26.             <p class="article-content">{{ post.content }}</p>
  27.           </div>
  28.         </article>
  29.     {% endfor %}</div>
  30. </div>
  31.  
  32.    
  33. {% endblock content %}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top