From c6c3f8a45ed0448854d584af83c416f3774d5e2a Mon Sep 17 00:00:00 2001 From: Omkar <69752718+Omkar1279@users.noreply.github.com> Date: Fri, 8 Nov 2024 13:01:43 +0530 Subject: [PATCH] Remove redundant Login and Sign Up links from home.html Redundant Login/Sign-Up Links: In the base.html, the navigation bar already contains links for Login and Sign Up for unauthenticated users, and these links are being repeated in the home.html file under the {% if user.is_authenticated %} block for unauthenticated users as well. This redundancy can lead to unnecessary repetition in the UI. Specifically: In the base.html file, there's a Login and Sign Up button for users who are not authenticated. In home.html, similar logic is implemented, but those links are not needed because the base template already handles this. --- ch11-newspaper-bootstrap/templates/home.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ch11-newspaper-bootstrap/templates/home.html b/ch11-newspaper-bootstrap/templates/home.html index 5a283d0..f8b9946 100644 --- a/ch11-newspaper-bootstrap/templates/home.html +++ b/ch11-newspaper-bootstrap/templates/home.html @@ -13,7 +13,5 @@ {% else %}

You are not logged in

-Log In | -Sign Up {% endif %} -{% endblock content %} \ No newline at end of file +{% endblock content %}