summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aloha/template/allotter/apply.html14
-rw-r--r--aloha/template/allotter/login.html16
-rw-r--r--aloha/template/base.html7
-rw-r--r--aloha/template/browser-version.html23
-rw-r--r--aloha/urls.py2
5 files changed, 57 insertions, 5 deletions
diff --git a/aloha/template/allotter/apply.html b/aloha/template/allotter/apply.html
index 4a80344..fc9b930 100644
--- a/aloha/template/allotter/apply.html
+++ b/aloha/template/allotter/apply.html
@@ -4,7 +4,19 @@
{% block title %} JAM 2012 Application form {% endblock %}
{% block scripts %}
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
+<script>
+$(document).ready(function(){
+ if(($.browser.msie) && ($.browser.version <=8)){
+ window.location="/browser-version"
+ }
+ if(($.browser.mozilla) && (parseInt($.browser.version) <=7)){
+ window.location="/browser-version"
+ }
+ if(($.browser.webkit) && (parseInt($.browser.version <=530))){
+ window.location="/browser-version"
+ }
+});
+</script>
<script>
$(document).ready(function(){
$("#check").click(function() {
diff --git a/aloha/template/allotter/login.html b/aloha/template/allotter/login.html
index 57193fc..8f7e755 100644
--- a/aloha/template/allotter/login.html
+++ b/aloha/template/allotter/login.html
@@ -2,7 +2,21 @@
{% block title %}Login{% endblock title %}
-
+{% block scripts %}
+<script>
+$(document).ready(function(){
+ if(($.browser.msie) && ($.browser.version <=8)){
+ window.location="/browser-version"
+ }
+ if(($.browser.mozilla) && (parseInt($.browser.version) <=7)){
+ window.location="/browser-version"
+ }
+ if(($.browser.webkit) && (parseInt($.browser.version <=530))){
+ window.location="/browser-version"
+ }
+});
+</script>
+{% endblock scripts %}
{% block content %}
<h2> Welcome to the JAM 2012 Admission website</h2>
<h2>Please fill in the required details to continue</h2>
diff --git a/aloha/template/base.html b/aloha/template/base.html
index fa0f605..9c536de 100644
--- a/aloha/template/base.html
+++ b/aloha/template/base.html
@@ -20,6 +20,7 @@
</style>
<link href="{{ STATIC_URL }}css/bootstrap-responsive.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/style.css" rel="stylesheet">
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
{% block scripts %}{% endblock %}
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
@@ -42,8 +43,8 @@
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
- <li><a href="#faq">FAQs</a></li>
- <li><a href="#contact">Contact</a></li>
+ <li><a href="http://www.iitb.ac.in/~pge/2k12/jam/faq.html" target="_blank">FAQs</a></li>
+ <li><a href="http://www.iitb.ac.in/~pge/2k12/jam/contact.html" target="_blank">Contact</a></li>
</ul>
{% if user.is_authenticated %}
<p class="navbar-text pull-right">Application for registration number {{ user }}</a></p>
@@ -69,7 +70,7 @@
<li class="nav-header">Notices</li>
<li><hr></li>
<li><span class="label label-important pull-right">Important</span></li>
- <li>Supported Browsers : <br />Google chrome >12 and FF >5</li>
+ <li>Supported Browsers : <br />Google chrome >= 12, FF >= 5, IE >= 9</li>
<li><hr></li>
<li><span class="label label-info pull-right">Info</span></li>
<li>JAM 2012 allotment online form filling starts from : 10-4-2012.</li>
diff --git a/aloha/template/browser-version.html b/aloha/template/browser-version.html
new file mode 100644
index 0000000..891c61a
--- /dev/null
+++ b/aloha/template/browser-version.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+
+
+{% block title %}Login{% endblock title %}
+
+{% block content %}
+<h2> Welcome to the JAM 2012 Admission website</h2>
+<hr />
+<h2>We have detected that you are using an outdated browser.</h2>
+<p>JAM 2012 allotment website would not work on your browser. Please update your browser or install one of the browsers mentioned below.</p>
+
+<hr />
+<table>
+<tr>
+<td><a href="https://www.google.com/chrome" target="_blank"><img src="{{ STATIC_URL }}img/64-chrome.png" /></a></td>
+<td><a href="http://www.getfirefox.com" target="_blank"><img src="{{ STATIC_URL }}img/64-firefox.png" /></a></td>
+<td><a href="http://windows.microsoft.com/en-IN/internet-explorer/products/ie/home" target="_blank"><img src="{{ STATIC_URL }}img/64-ie.png" /></a></td>
+<td><a href="http://www.apple.com/safari/download/" target="_blank"><img src="{{ STATIC_URL }}img/64-safari.png" /></a></td>
+</tr>
+</table>
+
+{% endblock content %}
+
diff --git a/aloha/urls.py b/aloha/urls.py
index 85a5c09..a00d57e 100644
--- a/aloha/urls.py
+++ b/aloha/urls.py
@@ -1,6 +1,7 @@
from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.conf.urls.static import static
+from django.views.generic.simple import direct_to_template
from django.contrib import admin
@@ -8,6 +9,7 @@ admin.autodiscover()
urlpatterns = patterns('',
url(r'^allotter/', include('allotter.urls')),
+ url(r'^browser-version', direct_to_template, {'template': 'browser-version.html'}),
# Examples:
# url(r'^$', 'aloha.views.home', name='home'),
# url(r'^aloha/', include('aloha.foo.urls')),