summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorKing2019-03-06 10:10:02 +0530
committerGitHub2019-03-06 10:10:02 +0530
commit54d7f6484768cd38c6f15c06b82f7c286bdb45f3 (patch)
tree5790e720091d31298bad4f3bc7917a59a2accc67 /yaksh/templates
parente55ef58c5c131afd836ac32ed6a1034aa668fccf (diff)
parentf8fdaabc6725ac4019e6017b3f41c29341e16218 (diff)
downloadonline_test-54d7f6484768cd38c6f15c06b82f7c286bdb45f3.tar.gz
online_test-54d7f6484768cd38c6f15c06b82f7c286bdb45f3.tar.bz2
online_test-54d7f6484768cd38c6f15c06b82f7c286bdb45f3.zip
Merge pull request #587 from CruiseDevice/fix_download_course_issue
Add Download Course button in Course Module template
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/course_modules.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html
index d5bbfd3..e1fdc51 100644
--- a/yaksh/templates/yaksh/course_modules.html
+++ b/yaksh/templates/yaksh/course_modules.html
@@ -14,10 +14,17 @@
{% block main %}
<div class="container">
-<div class="row justify-content-md-center yakshwell ">
- <div class="col-md-10 bg-light card">
- <div class="row align-items-center my-3">
- <div class="col h4 text-center"> {{ course.name }} </div>
+<div class="row justify-content-md-center yakshwell">
+ <div class="col-md-10 bg-light card" id="card">
+ <div class="row align-items-center">
+ <div class="col h4"> {{ course.name }} </div>
+ <div class = "col">
+ {% if course.has_lessons %}
+ <a href="{% url 'yaksh:download_course' course.id %}" data-toggle="tooltip" title="Download course content" class="btn btn-primary pull-right">
+ Download Course
+ </a>
+ {% endif %}
+ </div>
</div>
</div>
</div>