From 0a7930fdf832664130c50dadf0d45fbc1ab8b87b Mon Sep 17 00:00:00 2001
From: Harry Hughes <hugheshi@cardiff.ac.uk>
Date: Sun, 29 Jan 2023 16:29:24 +0000
Subject: [PATCH] Delete userposts.html

---
 blog/templates/userposts.html | 27 ---------------------------
 1 file changed, 27 deletions(-)
 delete mode 100644 blog/templates/userposts.html

diff --git a/blog/templates/userposts.html b/blog/templates/userposts.html
deleted file mode 100644
index b86b330..0000000
--- 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 %}
-
-- 
GitLab