summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing2019-03-06 10:10:02 +0530
committerGitHub2019-03-06 10:10:02 +0530
commit54d7f6484768cd38c6f15c06b82f7c286bdb45f3 (patch)
tree5790e720091d31298bad4f3bc7917a59a2accc67
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
-rw-r--r--yaksh/static/yaksh/css/yakshcustom.css4
-rw-r--r--yaksh/templates/yaksh/course_modules.html15
2 files changed, 15 insertions, 4 deletions
diff --git a/yaksh/static/yaksh/css/yakshcustom.css b/yaksh/static/yaksh/css/yakshcustom.css
index 1fbb50d..1a2c45c 100644
--- a/yaksh/static/yaksh/css/yakshcustom.css
+++ b/yaksh/static/yaksh/css/yakshcustom.css
@@ -228,3 +228,7 @@ html {
overflow-y: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
+
+#card{
+ flex-wrap: wrap;
+} \ No newline at end of file
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>