From a0df9622a69326b34648bb50ec994792cf3f8591 Mon Sep 17 00:00:00 2001 From: Ryan Laddusaw Date: Tue, 28 Jun 2016 15:07:48 -0700 Subject: [PATCH] updated navbar to highlight current page --- templates/accounts/login.html | 2 ++ templates/base.html | 7 ++++--- templates/home.html | 8 ++++++++ wishlist/urls.py | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/templates/accounts/login.html b/templates/accounts/login.html index 36ac4bf..ee311db 100644 --- a/templates/accounts/login.html +++ b/templates/accounts/login.html @@ -15,6 +15,7 @@
+ Register {% endblock %} @@ -27,6 +28,7 @@ $("#id_username").attr('class', 'form-control'); $("#id_password").attr('placeholder', '{{ form.password.label }}'); $("#id_password").attr('class', 'form-control'); + $("#id_login_navbar").attr('class', 'active'); }); diff --git a/templates/base.html b/templates/base.html index 3eb28e4..97d9197 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,13 +25,13 @@ --> +{% endblock %} + +{% block scripts %} + {% endblock %} \ No newline at end of file diff --git a/wishlist/urls.py b/wishlist/urls.py index 92260e8..2ebb03c 100644 --- a/wishlist/urls.py +++ b/wishlist/urls.py @@ -3,5 +3,5 @@ from .views import WishlistView urlpatterns = [ - url(r'create/$', WishlistView.as_view(), name='create_wishlist'), + url(r'create/$', WishlistView.as_view(), name='create_wishlist'), ] \ No newline at end of file