Merge pull request #30596 from pateljannat/remove-courses-template
This commit is contained in:
commit
59ad7e037c
@ -1,11 +0,0 @@
|
||||
{% extends "templates/web.html" %}
|
||||
|
||||
{% block header %}
|
||||
<h1> About </h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block page_content %}
|
||||
|
||||
<p class="post-description"> {{ intro }} </p>
|
||||
|
||||
{% endblock %}
|
@ -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
|
Loading…
Reference in New Issue
Block a user