summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/exam.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html
index 29ad167..0b292bb 100644
--- a/yaksh/templates/exam.html
+++ b/yaksh/templates/exam.html
@@ -98,6 +98,15 @@
{% endfor %}
</tbody>
</table>
+ <br>
+ {% if user.profile.is_moderator %}
+ {% if quiz.questionpaper_set.get %}
+ <a href="{{URL_ROOT}}/exam/manage/preview_questionpaper/{{quiz.questionpaper_set.get.id}}" class="btn btn-primary active btn-xs" target="_blank">
+ View Question Paper
+ </a>
+ <br>
+ {% endif %}
+ {% endif %}
</div> <!--end of sidebar -->
<a href="#sidebar" data-toggle="collapse" id="sidebaricon"><i class="fa fa-navicon fa-lg"></i></a>