summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2019-01-30 12:50:07 +0530
committerankitjavalkar2019-01-30 12:50:07 +0530
commit64298d4afebdece1eaccb363e83dc64db6645c45 (patch)
tree19310790ca16a96e72b8d61179e908702bcda360 /yaksh/templates
parentcedceac0c7b64e2116b5cfd5ec9461fdff98842c (diff)
downloadonline_test-64298d4afebdece1eaccb363e83dc64db6645c45.tar.gz
online_test-64298d4afebdece1eaccb363e83dc64db6645c45.tar.bz2
online_test-64298d4afebdece1eaccb363e83dc64db6645c45.zip
Allow course moderators to hide or show the grade to students
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/course_modules.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html
index 917f78c..244c2d9 100644
--- a/yaksh/templates/yaksh/course_modules.html
+++ b/yaksh/templates/yaksh/course_modules.html
@@ -2,7 +2,6 @@
{% load custom_filters %}
{% block title %} Course Modules {% endblock %}
{% block script %}
-<script src="{{ URL_ROOT }}/static/yaksh/js/donutpiechart.js"></script>
<script>
function view_unit(unit){
$("#"+unit+"_down").toggle();
@@ -36,16 +35,17 @@
</div>
<center>
-<div class=" col-md-8">
-<b>Grade: {% if grade %} {{ grade }} {% else %} Will be available once the course is complete {% endif %}</b>
-</div>
-
+ {% if course.view_grade %}
+ <div class=" col-md-8">
+ <b>Grade: {% if grade %} {{ grade }} {% else %} Will be available once the course is complete {% endif %}</b>
+ </div>
+ {% endif %}
-{% if msg %}
- <div class="col-md-8 alert alert-warning animated flash" role="alert">
- {{ msg }}
- </div>
-{% endif %}
+ {% if msg %}
+ <div class="col-md-8 alert alert-warning animated flash" role="alert">
+ {{ msg }}
+ </div>
+ {% endif %}
</center>
<div class="row justify-content-md-center ">