summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-25 02:24:34 +0530
committerPrabhu Ramachandran2011-11-25 02:24:34 +0530
commitb4023e17d6f97e51ffde740c17d19630b5a9c2d1 (patch)
tree78b015a1d6e9ffa1d4fbf673b6ef21491833b564 /templates
parent3375839bfc531329adc45994659be382295038b6 (diff)
downloadonline_test-b4023e17d6f97e51ffde740c17d19630b5a9c2d1.tar.gz
online_test-b4023e17d6f97e51ffde740c17d19630b5a9c2d1.tar.bz2
online_test-b4023e17d6f97e51ffde740c17d19630b5a9c2d1.zip
ENH: First cut of CSS for pages.
This is largely taken from other sites and looks reasonable for now. Also added links to the admin page from the monitor/user_data/grade_user.
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html11
-rw-r--r--templates/exam/grade_user.html1
-rw-r--r--templates/exam/monitor.html2
-rw-r--r--templates/exam/user_data.html5
4 files changed, 14 insertions, 5 deletions
diff --git a/templates/base.html b/templates/base.html
index 22e9ba2..c2bbabb 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -8,15 +8,18 @@
{% endblock %}
</title>
{% block meta %}
-{% endblock%}
+{% endblock %}
+<link rel="stylesheet" href="{{ URL_ROOT }}/static/exam/css/base.css" type="text/css" />
+{% block css %}
+{% endblock %}
{% block script %}
{% endblock %}
</head>
<body {% block onload %}{% endblock %}>
-
+ <div class=box>
{% block content %}
{% endblock %}
-
+ </div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/templates/exam/grade_user.html b/templates/exam/grade_user.html
index f671237..2994ee2 100644
--- a/templates/exam/grade_user.html
+++ b/templates/exam/grade_user.html
@@ -59,4 +59,5 @@ Marks: <input id="q{{ question.id }}" type="text"
{% endif %} {# if data.papers #}
+<a href="{{URL_ROOT}}/admin/">Admin</a>
{% endblock content %}
diff --git a/templates/exam/monitor.html b/templates/exam/monitor.html
index 8f34a7f..a15b2a2 100644
--- a/templates/exam/monitor.html
+++ b/templates/exam/monitor.html
@@ -62,4 +62,6 @@
{% endif %}
{% endif %}
+<a href="{{URL_ROOT}}/admin/">Admin</a>
+
{% endblock content %}
diff --git a/templates/exam/user_data.html b/templates/exam/user_data.html
index 1e2c392..7db0af2 100644
--- a/templates/exam/user_data.html
+++ b/templates/exam/user_data.html
@@ -21,8 +21,9 @@ Last login: {{ data.user.last_login }}
</p>
{% if data.papers %}
-<a href="{{URL_ROOT}}/exam/grade_user/{{ data.user.username }}/">
+<p><a href="{{URL_ROOT}}/exam/grade_user/{{ data.user.username }}/">
Grade/correct paper</a>
+</p>
{% for paper in data.papers %}
@@ -60,5 +61,7 @@ User IP address: {{ paper.user_ip }}
<hr />
<a href="{{URL_ROOT}}/exam/grade_user/{{ data.user.username }}/">
Grade/correct paper</a>
+<br/>
+<a href="{{URL_ROOT}}/admin/">Admin</a>
{% endblock content %}