From 519c2520ca0fa4797cfb42ad1bedf58bb6229bb0 Mon Sep 17 00:00:00 2001 From: umitdincel Date: Tue, 18 Dec 2018 00:52:54 +0300 Subject: [PATCH] active nav menu --- people/views.py | 5 +++++ presentations/views.py | 5 +++++ static_files/css/main.css | 6 +++--- templates/base.html | 6 +++--- templates/people/person_list.html | 5 ++--- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/people/views.py b/people/views.py index 23dc478..e903ab7 100644 --- a/people/views.py +++ b/people/views.py @@ -16,3 +16,8 @@ class PeopleView(ListView): def get_success_url(self): return reverse("people:index") + + def get_context_data(self, **kwargs): + context = super(PeopleView, self).get_context_data(**kwargs) + context['page'] = 'people' + return context \ No newline at end of file diff --git a/presentations/views.py b/presentations/views.py index 758ba11..6e443e2 100644 --- a/presentations/views.py +++ b/presentations/views.py @@ -5,3 +5,8 @@ class PresentationsView(ListView): model = Presentation + + def get_context_data(self, **kwargs): + context = super(PresentationsView, self).get_context_data(**kwargs) + context['page'] = 'presentation' + return context \ No newline at end of file diff --git a/static_files/css/main.css b/static_files/css/main.css index 5d22848..3d372d3 100755 --- a/static_files/css/main.css +++ b/static_files/css/main.css @@ -372,7 +372,7 @@ footer .copyright span:before { height: 120px; line-height: 120px; text-align: center; - margin: 0; + margin: 0 0 20px 0; background-color: rgba(238, 238, 238, 0.9); } @@ -399,11 +399,11 @@ footer .copyright span:before { } .event .presentations { - padding: 20px 20px 0; + padding: 0 20px; } .event .presentations .presentation { - margin-bottom: 20px; + margin-bottom: 10px; } .event .presentations .presentation-title { diff --git a/templates/base.html b/templates/base.html index b5e1632..79673f4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -61,7 +61,7 @@ - - - + + diff --git a/templates/people/person_list.html b/templates/people/person_list.html index 125913d..3b66c18 100644 --- a/templates/people/person_list.html +++ b/templates/people/person_list.html @@ -48,8 +48,7 @@ {% include 'djangospam/cookieform.html' %}
{% csrf_token %} - {{ form }} - +