From 8f74c74d50af23d91c96ed5511a0dfc5fec41773 Mon Sep 17 00:00:00 2001 From: pateljannat Date: Mon, 19 Jul 2021 10:55:06 +0530 Subject: [PATCH] fix: removed unused styles and folders --- community/public/css/style.css | 41 ---------- community/www/batch/learn.html | 2 +- community/www/dashboard/__init__.py | 0 .../www/dashboard/__pycache__/__init__.py | 0 community/www/home/__init__.py | 0 community/www/home/__pycache__/__init__.py | 0 community/www/my-courses/__init__.py | 0 .../www/my-courses/__pycache__/__init__.py | 0 community/www/my-courses/index.html | 82 ------------------- community/www/my-courses/index.py | 15 ---- community/www/sketches/__init__.py | 0 .../www/sketches/__pycache__/__init__.py | 0 12 files changed, 1 insertion(+), 139 deletions(-) delete mode 100644 community/www/dashboard/__init__.py delete mode 100644 community/www/dashboard/__pycache__/__init__.py delete mode 100644 community/www/home/__init__.py delete mode 100644 community/www/home/__pycache__/__init__.py delete mode 100644 community/www/my-courses/__init__.py delete mode 100644 community/www/my-courses/__pycache__/__init__.py delete mode 100644 community/www/my-courses/index.html delete mode 100644 community/www/my-courses/index.py delete mode 100644 community/www/sketches/__init__.py delete mode 100644 community/www/sketches/__pycache__/__init__.py diff --git a/community/public/css/style.css b/community/public/css/style.css index d55eb27d..ebd7da23 100644 --- a/community/public/css/style.css +++ b/community/public/css/style.css @@ -397,25 +397,6 @@ input[type=checkbox] { } } -.course-top-section { - float: none; - margin: 0 auto; - max-width: 1150px; - padding-bottom: 2rem; -} - -@media (max-width: 768px) { - .course-top-section { - max-width: 720px; - } -} - -@media (max-width: 600px) { - .course-top-section { - max-width: 342px; - } -} - .button-links:hover { text-decoration: none; } @@ -1077,28 +1058,6 @@ div.custom-checkbox>label>input:checked+img { width: 100%; } -.course-details-page { - padding: 0px 0px 80px; - display: flex; - flex-direction: column; - max-width: 1120px; - margin: 0 auto; -} - -@media (max-width: 1025px) { - .course-details-page { - padding: 24px 0px 24px; - width: 80%; - } -} - -@media (max-width: 768px) { - .course-details-page { - padding: 24px 0px 24px; - width: 90%; - } -} - .active-lesson { background-color: #EBF5FF; border-radius: 4px; diff --git a/community/www/batch/learn.html b/community/www/batch/learn.html index d4493cdc..73f8f844 100644 --- a/community/www/batch/learn.html +++ b/community/www/batch/learn.html @@ -21,7 +21,7 @@ {% block content %}
-
+
{{ widgets.BreadCrumb(course=course, lesson=lesson) }}
diff --git a/community/www/dashboard/__init__.py b/community/www/dashboard/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/community/www/dashboard/__pycache__/__init__.py b/community/www/dashboard/__pycache__/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/community/www/home/__init__.py b/community/www/home/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/community/www/home/__pycache__/__init__.py b/community/www/home/__pycache__/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/community/www/my-courses/__init__.py b/community/www/my-courses/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/community/www/my-courses/__pycache__/__init__.py b/community/www/my-courses/__pycache__/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/community/www/my-courses/index.html b/community/www/my-courses/index.html deleted file mode 100644 index 24db031a..00000000 --- a/community/www/my-courses/index.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends "templates/base.html" %} -{% from "www/hackathons/macros/card.html" import null_card %} - -{% block title %}{{ 'My Courses' }}{% endblock %} -{% block head_include %} - - - -{% endblock %} - -{% macro card(course) %} - -{% endmacro %} - -{% block content %} -
-
- {% if frappe.session.user != "Guest" %} - {% for course in my_courses %} - {{ card(course) }} - {% endfor %} - {% if my_courses %} - {% for n in range( (3 - (my_courses|length)) %3) %} - {{ null_card() }} - {% endfor %} - {% else %} -
You haven't enrolled in any Course yet. Check out the availabe - courses.
- {% endif %} - {% else %} -
-

Please sign up to access this page.

- {{_('Sign Up')}} -
- {% endif %} -
-
-{% endblock %} \ No newline at end of file diff --git a/community/www/my-courses/index.py b/community/www/my-courses/index.py deleted file mode 100644 index b3902f51..00000000 --- a/community/www/my-courses/index.py +++ /dev/null @@ -1,15 +0,0 @@ -import frappe - -def get_context(context): - context.no_cache = 1 - context.my_courses = get_my_courses() - -def get_my_courses(): - my_courses = [] - courses = frappe.get_all("LMS Course Enrollment", {"owner": frappe.session.user}, ["course"]) - for course in courses: - my_courses.append({ - "name": course.course, - "title": frappe.db.get_value("LMS Course", course.course, ["title"]) - }) - return my_courses \ No newline at end of file diff --git a/community/www/sketches/__init__.py b/community/www/sketches/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/community/www/sketches/__pycache__/__init__.py b/community/www/sketches/__pycache__/__init__.py deleted file mode 100644 index e69de29b..00000000