summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202018-11-06 12:31:51 +0530
committerGitHub2018-11-06 12:31:51 +0530
commit894b700dac72674b4c3d8bcc5ba3f15ff67303f4 (patch)
tree6f6a20083a8ac5d64300a59e27fbcd2ea718dc62
parent6e4bfa40c3aae76c27c57d25f0d7761eb411f0c6 (diff)
parent2f697bb58fa5f42fdc021783110fcc40f4e7b592 (diff)
downloadnccps-2018-894b700dac72674b4c3d8bcc5ba3f15ff67303f4.tar.gz
nccps-2018-894b700dac72674b4c3d8bcc5ba3f15ff67303f4.tar.bz2
nccps-2018-894b700dac72674b4c3d8bcc5ba3f15ff67303f4.zip
Merge pull request #54 from Sashi20/master
Re-arranged navigation menu and added workshops section in home page
-rw-r--r--static/website/templates/home.html25
-rw-r--r--static/website/templates/navbar.html2
-rw-r--r--website/urls.py2
-rw-r--r--website/views.py2
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 @@
</div><!-- /.row -->
</div>
</section>
+
+ <section id="workshops" class="section workshops">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-12">
+ <h3 class="section-title">Workshops</h3>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <p class="text-justify">
+ 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.
+ </p>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <center>
+ <a href="{% url 'website:workshops' %}" class="btn btn-primary"> Read more</a>
+ </center>
+ </div>
+ </div>
+ </div>
+ </section>
<section id="registration" class="section registration">
<div class="container">
diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html
index 632bb92..d6c52ae 100644
--- a/static/website/templates/navbar.html
+++ b/static/website/templates/navbar.html
@@ -32,6 +32,7 @@
<!-- navigation menu -->
<li class="active"><a data-scroll href="{{SITE_URL}}/#about">About</a></li>
<li><a data-scroll href="{{SITE_URL}}/#speakers">Speakers</a></li>
+ <li><a href="{{SITE_URL}}/#workshops">Workshops</a></li>
<li><a data-scroll href="{{SITE_URL}}/#registration">Register</a></li>
<!-- <li><a data-scroll href="{{SITE_URL}}/#submit">CFP</a></li> -->
<li><a data-scroll href="{{SITE_URL}}/#coc">C0C</a></li>
@@ -41,7 +42,6 @@
<!--<li><a data-scroll href="{{SITE_URL}}/#organiser">Organiser</a></li> -->
<li><a data-scroll href="{{SITE_URL}}/#contact-us">Contact Us</a></li>
<li><a href="{% url 'website:dwsimquiz' %}">DWSIM QUIZ</a></li>
- <li><a href="{% url 'website:workshop' %}">Workshop</a></li>
<!-- <li><a href="{% url 'website:jobfair' %}">Job Fair</a></li> -->
<li><a href="{% url 'website:cfp' %}">cfp</a></li>
{% if user.is_authenticated %}
diff --git a/website/urls.py b/website/urls.py
index 4d959c3..841f338 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 3a21f94..5aee28e 100644
--- a/website/views.py
+++ b/website/views.py
@@ -68,7 +68,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))