From a8138d2e6ca2b24f9642a85575c9585eb5500227 Mon Sep 17 00:00:00 2001 From: Krrish Sehgal <133865424+krrish-sehgal@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:42:24 +0530 Subject: [PATCH] revert blog formatttings --- blog/templates/blog/post_delete.html | 24 ++++---- blog/templates/blog/post_details.html | 48 ++++++++------- blog/templates/blog/post_form.html | 87 ++++++++++++++------------- blog/templates/blog/post_list.html | 44 +++++++------- 4 files changed, 103 insertions(+), 100 deletions(-) diff --git a/blog/templates/blog/post_delete.html b/blog/templates/blog/post_delete.html index 6df5d7f19..37f361831 100644 --- a/blog/templates/blog/post_delete.html +++ b/blog/templates/blog/post_delete.html @@ -1,6 +1,7 @@ {% extends "base.html" %} + {% block content %} - - {% include "includes/sidenav.html" %} -

Confirm Delete

-

Are you sure you want to delete the post "{{ post.title }}"?

-
- {% csrf_token %} - - Cancel -
-{% endblock content %} + + +{% include "includes/sidenav.html" %} +

Confirm Delete

+

Are you sure you want to delete the post "{{ post.title }}"?

+
+ {% csrf_token %} + + Cancel +
+{% endblock content %} \ No newline at end of file diff --git a/blog/templates/blog/post_details.html b/blog/templates/blog/post_details.html index fa1755bbf..e0ae20cde 100644 --- a/blog/templates/blog/post_details.html +++ b/blog/templates/blog/post_details.html @@ -1,6 +1,7 @@ {% extends "base.html" %} + {% block content %} - - {% include "includes/sidenav.html" %} -
-

{{ post.title }}

-

By {{ post.author }} on {{ post.created_at }}

-
{{ post.content|safe }}
- {% if post.image %} -
- {{ post.title }} -
- {% endif %} - {% if request.user == post.author %} -
- Update Post - Delete Post -
- {% endif %} -
-{% endblock content %} + + +{% include "includes/sidenav.html" %} +
+

{{ post.title }}

+

By {{ post.author }} on {{ post.created_at }}

+
+ {{ post.content|safe }} +
+ {% if post.image %} +
+ {{ post.title }} +
+ {% endif %} + + {% if request.user == post.author %} +
+ Update Post + Delete Post +
+ {% endif %} +
+{% endblock content %} \ No newline at end of file diff --git a/blog/templates/blog/post_form.html b/blog/templates/blog/post_form.html index f873475df..aaee01df5 100644 --- a/blog/templates/blog/post_form.html +++ b/blog/templates/blog/post_form.html @@ -1,6 +1,7 @@ {% extends "base.html" %} + {% block content %} - - {% include "includes/sidenav.html" %} -

- {% if form.instance.pk %} - Edit - {% else %} - New - {% endif %} - Post -

-
-
- {% csrf_token %} -
- {{ form.title.label }} -
- {{ form.title }} -
- {% for error in form.title.errors %}
{{ error }}
{% endfor %} -
-
- {{ form.content.label }} -
- {{ form.content }} -
- {% for error in form.content.errors %}
{{ error }}
{% endfor %} -
-
- {{ form.image.label }} -
- {{ form.image }} -
- {% for error in form.image.errors %}
{{ error }}
{% endfor %} -
- -
-
- - - -{% endblock content %} + + +{% include "includes/sidenav.html" %} +

{% if form.instance.pk %}Edit{% else %}New{% endif %} Post

+ +
+
+ {% csrf_token %} +
+ {{ form.title.label }}
+ {{ form.title }}
+ {% for error in form.title.errors %} +
{{ error }}
+ {% endfor %} +
+ +
+ {{ form.content.label }}
+ {{ form.content }}
+ {% for error in form.content.errors %} +
{{ error }}
+ {% endfor %} +
+ +
+ {{ form.image.label }}
+ {{ form.image }}
+ {% for error in form.image.errors %} +
{{ error }}
+ {% endfor %} +
+ + +
+
+ + + + +{% endblock content %} \ No newline at end of file diff --git a/blog/templates/blog/post_list.html b/blog/templates/blog/post_list.html index 6e9c9d641..86081a1d3 100644 --- a/blog/templates/blog/post_list.html +++ b/blog/templates/blog/post_list.html @@ -1,6 +1,7 @@ {% extends "base.html" %} + {% block content %} - - {% include "includes/sidenav.html" %} -

Blog Posts

- -{% endblock content %} + + +{% include "includes/sidenav.html" %} +

Blog Posts

+ +{% endblock content %} \ No newline at end of file