From 6132c8527b54caec3a23245274b081efdb88cf6c Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 6 Jun 2019 14:19:36 +0530 Subject: [PATCH] refactor: all programs are shown on home by deafult --- erpnext/www/lms/all-programs.html | 54 ------------------------------- erpnext/www/lms/all_programs.py | 9 ------ erpnext/www/lms/index.html | 3 -- 3 files changed, 66 deletions(-) delete mode 100644 erpnext/www/lms/all-programs.html delete mode 100644 erpnext/www/lms/all_programs.py diff --git a/erpnext/www/lms/all-programs.html b/erpnext/www/lms/all-programs.html deleted file mode 100644 index 11ca21485d..0000000000 --- a/erpnext/www/lms/all-programs.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "templates/base.html" %} -{% block title %}All Programs{% endblock %} -{% from "www/lms/macros/card.html" import program_card %} - -{% block head_include %} - -{% endblock %} - -{% block content %} -
- -
-
- {% for program in all_programs %} - {{ program_card(program.program, program.has_access) }} - {% endfor %} -
-
-
-{% endblock %} \ No newline at end of file diff --git a/erpnext/www/lms/all_programs.py b/erpnext/www/lms/all_programs.py deleted file mode 100644 index c0c18c3534..0000000000 --- a/erpnext/www/lms/all_programs.py +++ /dev/null @@ -1,9 +0,0 @@ -from __future__ import unicode_literals -import erpnext.education.utils as utils -import frappe - -no_cache = 1 - -def get_context(context): - context.education_settings = frappe.get_single("Education Settings") - context.all_programs = utils.get_portal_programs() \ No newline at end of file diff --git a/erpnext/www/lms/index.html b/erpnext/www/lms/index.html index fcefc833e9..d7c28c7273 100644 --- a/erpnext/www/lms/index.html +++ b/erpnext/www/lms/index.html @@ -52,9 +52,6 @@ {{ program_card(program.program, program.has_access) }} {% endfor %} -

- View All Programs -

{% endblock %} \ No newline at end of file