From b985271c2233e1cc2a9447dc7b0d4c9b1319a93e Mon Sep 17 00:00:00 2001 From: Ashfaq Ahmed <46718979+ashfaq1934@users.noreply.github.com> Date: Wed, 3 May 2023 20:07:34 +0100 Subject: [PATCH 01/10] Updated feed template and fixed bugs with loading less files - Created a new view to display the feed - Updated feed template to display threads without having to register an account - Bugfixes for less files not being found in about.html and how_it_works.html - Modified new thread button to direct the user to login if they haven't been aurthenticated --- project/core/templates/about.html | 4 +- project/core/templates/base.html | 2 +- project/core/templates/how_it_works.html | 4 +- project/core/templates/landing.html | 1 + project/core/templates/static/less/feed.less | 7 +-- project/core/templates/static/less/utils.less | 4 ++ project/threads/templates/threads/feed.html | 60 +++++++++++++------ project/threads/urls/urls.py | 2 +- project/threads/views.py | 48 +++++++-------- 9 files changed, 80 insertions(+), 52 deletions(-) diff --git a/project/core/templates/about.html b/project/core/templates/about.html index 906234abc..ca3329fa4 100644 --- a/project/core/templates/about.html +++ b/project/core/templates/about.html @@ -2,7 +2,7 @@ {% load static %} {% load i18n %} {% block extra_css %} - + {% endblock extra_css %} {% block page_title %}{% trans "About Us" %}{% endblock page_title %} @@ -186,7 +186,7 @@