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/file_utils.py | |
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/file_utils.py')
-rw-r--r-- | yaksh/file_utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yaksh/file_utils.py b/yaksh/file_utils.py index af0ee1e..8a94260 100644 --- a/yaksh/file_utils.py +++ b/yaksh/file_utils.py @@ -70,13 +70,12 @@ def is_csv(document): def write_static_files_to_zip(zipfile, course_name, current_dir): - relative_folders = ["css", "js", "images"] static_files = {"js": ["bootstrap.js", "bootstrap.min.js", "jquery-1.9.1.min.js", "video.js"], "css": ["bootstrap.css", "bootstrap.min.css", - "video-js.css"], + "video-js.css", "offline.css"], "images": ["yaksh_banner.png"]} - for folder in relative_folders: + for folder in static_files.keys(): folder_path = os.sep.join((current_dir, "static", "yaksh", folder)) for file in static_files[folder]: file_path = os.sep.join((folder_path, file)) |