diff options
author | hardythe1 | 2014-09-19 02:03:59 +0530 |
---|---|---|
committer | hardythe1 | 2014-09-19 02:03:59 +0530 |
commit | 259d96ce9a90dfdf472a8c37736412b0163c906c (patch) | |
tree | 29890d74bec427d351311432f42a6c718c706dbf /static/website/templates | |
parent | cf43d8d47ea2e1aa331d38638d924da66198e4cf (diff) | |
download | scipy2014-259d96ce9a90dfdf472a8c37736412b0163c906c.tar.gz scipy2014-259d96ce9a90dfdf472a8c37736412b0163c906c.tar.bz2 scipy2014-259d96ce9a90dfdf472a8c37736412b0163c906c.zip |
added custom template tag for dyanmic bolding in nav bar
Diffstat (limited to 'static/website/templates')
-rwxr-xr-x | static/website/templates/base.html | 15 | ||||
-rwxr-xr-x | static/website/templates/home.html | 20 |
2 files changed, 17 insertions, 18 deletions
diff --git a/static/website/templates/base.html b/static/website/templates/base.html index c43b8ae..db5a3e1 100755 --- a/static/website/templates/base.html +++ b/static/website/templates/base.html @@ -1,4 +1,5 @@ {% load static %} +{% load tags %} <!DOCTYPE html> <html lang="en"> <head> @@ -27,13 +28,13 @@ <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> - <li class="active"><a href="{% url 'website:home'%}">Home</a></li> - <li><a href="{% url 'website:call_for_proposals' %}">Call for Proposals</a></li> - <li><a href="{% url 'website:schedule' %}">Schedule</a></li> - <li><a href="{% url 'website:invited_speakers' %}">Invited Speakers</a></li> - <li><a href="{% url 'website:sponsors' %}">Sponsors</a></li> - <li><a href="{% url 'website:venue' %}">Venue</a></li> - <li><a href="{% url 'website:contact' %}">Contact Us</a></li--> + <li><a href="{% url 'website:home'%}">Home</a></li> + <li class="{% active request '^/call-for-proposals/$' %}"><a href="{% url 'website:call_for_proposals' %}">Call for Proposals</a></li> + <li class="{% active request '^/schedule/$' %}"><a href="{% url 'website:schedule' %}">Schedule</a></li> + <li class="{% active request '^/invited-speakers/$' %}"><a href="{% url 'website:invited_speakers' %}">Invited Speakers</a></li> + <li class="{% active request '^/sponsors/$' %}"><a href="{% url 'website:sponsors' %}">Sponsors</a></li> + <li class="{% active request '^/venue/$' %}"><a href="{% url 'website:venue' %}">Venue</a></li> + <li class="{% active request '^/contact/$' %}"><a href="{% url 'website:contact' %}">Contact Us</a></li--> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="{% url 'website:register' %}">Register</a></li> diff --git a/static/website/templates/home.html b/static/website/templates/home.html index d2f2936..1d353dc 100755 --- a/static/website/templates/home.html +++ b/static/website/templates/home.html @@ -1,4 +1,5 @@ {% load static %} +{% load tags %} <!DOCTYPE html> <html lang="en"> <head> @@ -27,11 +28,11 @@ <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> - <li class="active"><a href="{% url 'website:home'%}">Home</a></li> + <li class="{% active request '^/$' %}"><a href="{% url 'website:home'%}">Home</a></li> <li><a href="{% url 'website:call_for_proposals' %}">Call for Proposals</a></li> <li><a href="{% url 'website:schedule' %}">Schedule</a></li> - <li><a href="#">Invited Speakers</a></li> - <li><a href="#">Sponsors</a></li> + <li><a href="{% url 'website:invited_speakers' %}">Invited Speakers</a></li> + <li><a href="{% url 'website:sponsors' %}">Sponsors</a></li> <li><a href="{% url 'website:venue' %}">Venue</a></li> <li><a href="{% url 'website:contact' %}">Contact Us</a></li--> </ul> @@ -71,10 +72,10 @@ <div class="extras"> <div class="row"> <div class="col-md-6 bio"> - View Bio + <a href="{% url 'website:invited_speakers' %}">View Bio</a> </div> <div class="col-md-6"> - Twitter + <a href="https://twitter.com/fijall" target="_blank">Twitter</a> </div> </div> </div> @@ -90,10 +91,10 @@ <div class="extras"> <div class="row"> <div class="col-md-6 bio"> - View Bio + <a href="{% url 'website:invited_speakers' %}">View Bio</a> </div> <div class="col-md-6"> - Website + <a href="http://expeyes.in/" target="_blank">Website</a> </div> </div> </div> @@ -138,13 +139,10 @@ conference also aims to spread the use of Python for Scientific Computing in various fields and among different communities. - SciPy India 2014 Organiser: FOSSEE For - more details visit: python.fossee.in, - python.org </p> <hr> <p> - SciPy India 2013 Organiser: <a href="http://fossee.in" target="_blank">FOSSEE</a><br> + SciPy India 2014 Organiser: <a href="http://fossee.in" target="_blank">FOSSEE</a><br> For more details visit: <a href="http://python.fossee.in" target="_blank">python.fossee.in</a>, <a href="http://python.org" target="_blank">python.org</a> |