From 2f697bb58fa5f42fdc021783110fcc40f4e7b592 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 6 Nov 2018 12:31:04 +0530 Subject: Re-arranged navigation menu and added workshops section in home page --- static/website/templates/home.html | 25 +++++++++++++++++++++++++ static/website/templates/navbar.html | 2 +- website/urls.py | 2 +- website/views.py | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/static/website/templates/home.html b/static/website/templates/home.html index 1aa6ce1..0ca91d3 100644 --- a/static/website/templates/home.html +++ b/static/website/templates/home.html @@ -114,6 +114,31 @@ + +
+
+
+
+

Workshops

+
+
+
+
+

+ Improve your skills by attending workshops on DWSIM and OpenModelica organized for you at NCCPS-2018. + We are organizing free workshops for all the participants who have registered for NCCPS-2018. Attend the workshop suitable for you and explore the tools available, free of cost for your field of interest. +

+
+
+
+
+
+ Read more +
+
+
+
+
diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html index 1a54cab..28097c7 100644 --- a/static/website/templates/navbar.html +++ b/static/website/templates/navbar.html @@ -32,6 +32,7 @@
  • About
  • Speakers
  • +
  • Workshops
  • Register
  • C0C
  • @@ -41,7 +42,6 @@
  • Contact Us
  • DWSIM QUIZ
  • -
  • Workshop
  • cfp
  • {% if user.is_authenticated %} diff --git a/website/urls.py b/website/urls.py index 69dac41..a6aabe3 100644 --- a/website/urls.py +++ b/website/urls.py @@ -15,7 +15,7 @@ urlpatterns = [ #path('proposal/view', views.view_abstracts, name='view_abstracts'), #path('proposal/submitcfp', views.submitcfp, name='submitcfp'), #path('accounts/register', views.userregister, name='userregister'), - re_path(r'^workshop/$', views.workshop, name='workshop'), + re_path(r'^workshops/$', views.workshops, name='workshops'), re_path(r'^dwsimquiz/$', views.dwsimquiz, name='dwsimquiz'), re_path(r'^jobfair/$', views.jobfair, name='jobfair'), re_path(r'^cfp/$', views.cfp, name='cfp'), diff --git a/website/views.py b/website/views.py index 0cb760e..4a52495 100644 --- a/website/views.py +++ b/website/views.py @@ -62,7 +62,7 @@ def jobfair(request): template = loader.get_template('job-fair.html') return HttpResponse(template.render(context, request)) -def workshop(request): +def workshops(request): context = {} template = loader.get_template('workshops.html') return HttpResponse(template.render(context, request)) -- cgit