[cleanup] remove unused LMS (#7612)

This commit is contained in:
Rushabh Mehta
2017-01-30 17:04:38 +05:30
committed by GitHub
parent 455824235a
commit 4500f7b4d6
25 changed files with 2 additions and 1017 deletions

View File

@@ -1,20 +0,0 @@
{% extends "templates/web.html" %}
{% block header %}
<h1> {{doc.subject}} </h1>
{% endblock %}
{% block page_content %}
<p class="post-description"> {{doc.description}} </p>
<p class="post-by text-muted small">
{% for file in attached_files%}
<a href="{{file.file_url}}" target="_new">{{file.file_name}}</a>
<br>
{% endfor %}
<br>
<i>{{ doc.posted_by }}</i>
<i class="blog-dot"></i> {{ frappe.format_date(doc.modified) }}
</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
from __future__ import unicode_literals
import frappe
def get_context(context):
announcement = frappe.get_doc('Announcement', frappe.form_dict.announcement)
context.no_cache = 1
context.show_sidebar = True
announcement.has_permission('read')
context.doc = announcement
attachments = frappe.db.sql("""select file_url, file_name from tabFile as file
where file.attached_to_name=%s """,(announcement.name), as_dict = True)
context.attached_files = attachments

View File

@@ -15,14 +15,6 @@ def get_context(context):
course = frappe.get_doc('Course', frappe.form_dict.course)
course.has_permission('read')
context.doc = course
portal_items = [{'reference_doctype': u'Topic', 'route': u"/topic?course=" + str(course.name), 'show_always': 0L, 'title': u'Topics'},
{'reference_doctype': u'Discussion', 'route': u"/discussion?course=" + str(course.name), 'show_always': 0L, 'title': u'Discussions'},
]
context.sidebar_items = portal_items
context.sidebar_title = sidebar_title
context.intro = course.course_intro

View File

@@ -1,15 +0,0 @@
{% extends "templates/web.html" %}
{% block header %}
<h2> {{doc.subject}} </h2>
<p> {{doc.description}} </p>
<p class="text-muted small">Started by: {{doc.owner}} </p>
{% endblock %}
{% block page_content %}
<div>
{% include 'templates/includes/comments/comments.html' %}
</div>
{% endblock %}

View File

@@ -1,21 +0,0 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.website.utils import get_comment_list
def get_context(context):
context.doc = frappe.get_doc('Discussion', frappe.form_dict.discussion)
portal_items = [{'reference_doctype': u'Topic', 'route': u"/topic?course=" + str(context.doc.course), 'show_always': 0L, 'title': u'Topics'},
{'reference_doctype': u'Discussion', 'route': u"/discussion?course=" + str(context.doc.course), 'show_always': 0L, 'title': u'Discussions'},
]
context.show_sidebar = True
context.sidebar_items = portal_items
context.no_cache = 1
context.doc.has_permission('read')
context.sidebar_title = context.doc.course
context.reference_doctype = "Discussion"
context.reference_name = context.doc.name
context.comment_list = get_comment_list(context.doc.doctype,context.doc.name)

View File

@@ -1,12 +0,0 @@
{% extends "templates/web.html" %}
{% block header %}
<h2> {{ doc.introduction }} </h1>
{% endblock %}
{% block page_content %}
<p class="post-description"> {{ doc.content }} </p>
{% endblock %}

View File

@@ -1,15 +0,0 @@
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def get_context(context):
topic = frappe.get_doc('Topic', frappe.form_dict.topic)
context.no_cache = 1
context.show_sidebar = True
context.doc = topic
attachments = frappe.db.sql("""select file_url, file_name from tabFile as file
where file.attached_to_name=%s """,(topic.name), as_dict = True)
context.attached_files = attachments