diff --git a/blog/templates/userposts.html b/blog/templates/userposts.html deleted file mode 100644 index b86b33000617bfea0e03e9ca0ede82810055f8b1..0000000000000000000000000000000000000000 --- a/blog/templates/userposts.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "layout.html" %} - -{% block content %} - <h3 class="posts_by">Posts by {{ user.username }} - {{ posts.total }} posts</h3> - {% for post in posts.items %} - <article class="media content-section"> - <div class="media-body"> - <div class="article-metadata"> - <a class="mr-2" href="{{ url_for('userposts', username=post.author.username) }}">{{ post.author.username }}</a> - <small class="text-muted">{{ post.date_posted.strftime('%Y-%m-%d, %H:%M') }}</small> - </div> - <h2><a class="article-title" href="{{ url_for('post', post_id=post.id) }}">{{ post.title }}</a></h2> - <p class="article-content">{{ post.content }}</p> - </div> - </article> - {% endfor %} - {% for page_num in posts.iter_pages(left_edge=1, right_edge=1, left_current=1, right_current=2) %} - {% if page_num %} - {% if posts.page == page_num %} - <a class="btn btn-primary m-auto" href="{{ url_for('userposts', username=user.username, page=page_num) }}">{{page_num}}</a> - {% else %} - <a class="btn btn-outline-primary m-auto" href="{{ url_for('userposts', username=user.username, page=page_num) }}">{{page_num}}</a> - {% endif %} - {% endif %} - {% endfor %} -{% endblock content %} -