diff options
author | adityacp | 2018-07-10 13:48:54 +0530 |
---|---|---|
committer | adityacp | 2018-07-10 13:48:54 +0530 |
commit | 5bd270e21bfdf08bd73940bf471ebcf566fb9de6 (patch) | |
tree | e66e0868e151384b060db5daecd1b04a0cd55988 /yaksh/templates | |
parent | ddd2981529798b8c59dec33e50ccf6e808f3bc19 (diff) | |
download | online_test-5bd270e21bfdf08bd73940bf471ebcf566fb9de6.tar.gz online_test-5bd270e21bfdf08bd73940bf471ebcf566fb9de6.tar.bz2 online_test-5bd270e21bfdf08bd73940bf471ebcf566fb9de6.zip |
Changes in file_utils.py, courses.html, index.html, module.html, unit.html, offline.css
- Remove unnecessary list from write_templates_to_zip function in file_utils
- Remove styling from index.html, module.html, unit.html
- Add offline.css for styling in index.html, module.html, unit.html
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/courses.html | 5 | ||||
-rw-r--r-- | yaksh/templates/yaksh/index.html | 12 | ||||
-rw-r--r-- | yaksh/templates/yaksh/module.html | 22 | ||||
-rw-r--r-- | yaksh/templates/yaksh/unit.html | 12 |
4 files changed, 7 insertions, 44 deletions
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index 77e1859..3a98792 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -142,7 +142,8 @@ </li> <br> <li> - <a href="{{URL_ROOT}}/exam/manage/courses/download_course/{{course.id}}" data-toggle="tooltip" title="Download course content in html format" data-placement="top">Download Course + <a href="{{URL_ROOT}}/exam/manage/courses/download_course/{{course.id}}" data-toggle="tooltip" title="Download course content for offline view" data-placement="top"> + Download course offline </a> </li> </ul> @@ -283,7 +284,7 @@ </li> <br> <li> - <a href="{{URL_ROOT}}/exam/manage/courses/download_course/{{course.id}}" data-toggle="tooltip" title="Download course content in html format" data-placement="top">Download Course + <a href="{{URL_ROOT}}/exam/manage/courses/download_course/{{course.id}}" data-toggle="tooltip" title="Download course content for offline view" data-placement="top">Download course offline </a> </li> </ul> diff --git a/yaksh/templates/yaksh/index.html b/yaksh/templates/yaksh/index.html index 9a2c395..a90cf4c 100644 --- a/yaksh/templates/yaksh/index.html +++ b/yaksh/templates/yaksh/index.html @@ -2,19 +2,9 @@ <html> <link rel="stylesheet" href="static/css/bootstrap.css"> <link rel="stylesheet" href="static/css/bootstrap.min.css"> +<link rel="stylesheet" href="static/css/offline.css"> <script src="static/js/jquery-1.9.1.min.js"></script> <script src="static/js/bootstrap.min.js"></script> -<style> -.footer { - position: fixed; - left: 0; - bottom: 0; - width: 100%; - background-color: #D3D3D3; - color: black; - text-align: center; -} -</style> {% block pagetitle %} {{course.name}} {% endblock %} <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> diff --git a/yaksh/templates/yaksh/module.html b/yaksh/templates/yaksh/module.html index a2a2c96..2ce5442 100644 --- a/yaksh/templates/yaksh/module.html +++ b/yaksh/templates/yaksh/module.html @@ -2,28 +2,10 @@ <html> <link rel="stylesheet" href="../static/css/bootstrap.css"> <link rel="stylesheet" href="../static/css/bootstrap.min.css"> +<link rel="stylesheet" href="../static/css/offline.css"> <script src="../static/js/jquery-1.9.1.min.js"></script> <script src="../static/js/bootstrap.min.js"></script> <script src="https://vjs.zencdn.net/6.9.0/video.js"></script> -<style> -.footer { - position: fixed; - left: 0; - bottom: 0; - width: 100%; - background-color: #D3D3D3; - color: black; - text-align: center; -} -table { - border: none; - border-spacing: 0; - border-collapse: collapse; -} -table tr td:nth-child(2) { - border-left: 1px solid #D3D3D3; -} -</style> {% block pagetitle %} {{module.name}} {% endblock %} <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> @@ -46,7 +28,7 @@ table tr td:nth-child(2) { <hr> {% block content %} <center><h2>{{module.name}}</h2></center> - <table class="table"> + <table class="table module"> <tr> <td> <h4><strong>Lessons (Click on lesson name to open lesson) diff --git a/yaksh/templates/yaksh/unit.html b/yaksh/templates/yaksh/unit.html index 3ffc399..bd34b32 100644 --- a/yaksh/templates/yaksh/unit.html +++ b/yaksh/templates/yaksh/unit.html @@ -2,21 +2,11 @@ <html> <link rel="stylesheet" href="../../static/css/bootstrap.css"> <link rel="stylesheet" href="../../static/css/bootstrap.min.css"> +<link rel="stylesheet" href="../../static/css/offline.css"> <link rel="stylesheet" href="../../static/css/video-js.css"> <script src="../../static/js/jquery-1.9.1.min.js"></script> <script src="../../static/js/bootstrap.min.js"></script> <script src="../../static/js/video.js"></script> -<style> -.footer { - position: fixed; - left: 0; - bottom: 0; - width: 100%; - background-color: #D3D3D3; - color: black; - text-align: center; -} -</style> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> |