Merge pull request #30596 from pateljannat/remove-courses-template

This commit is contained in:
Jannat Patel 2022-04-08 16:27:31 +05:30 committed by GitHub
commit 59ad7e037c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 29 deletions

View File

@ -1,11 +0,0 @@
{% extends "templates/web.html" %}
{% block header %}
<h1> About </h1>
{% endblock %}
{% block page_content %}
<p class="post-description"> {{ intro }} </p>
{% endblock %}

View File

@ -1,18 +0,0 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
def get_context(context):
course = frappe.get_doc("Course", frappe.form_dict.course)
sidebar_title = course.name
context.no_cache = 1
context.show_sidebar = True
course = frappe.get_doc("Course", frappe.form_dict.course)
course.has_permission("read")
context.doc = course
context.sidebar_title = sidebar_title
context.intro = course.course_intro