From 4e802fbc5f28630d905e5a17e4fdaadc53104912 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 16 Mar 2015 18:00:38 +0530 Subject: [PATCH] [website] cleanup to template.py --- .../templates/includes/comments/comments.py | 2 +- frappe/templates/includes/form_macros.html | 4 +- frappe/templates/pages/me.html | 1 + frappe/templates/pages/me.py | 10 +- frappe/website/context.py | 4 +- frappe/website/template.py | 100 +++++++++++------- 6 files changed, 73 insertions(+), 48 deletions(-) diff --git a/frappe/templates/includes/comments/comments.py b/frappe/templates/includes/comments/comments.py index 74585bca75..eb05e54489 100644 --- a/frappe/templates/includes/comments/comments.py +++ b/frappe/templates/includes/comments/comments.py @@ -59,6 +59,6 @@ def add_comment(args=None): message = message, ref_doctype=comment.comment_doctype, ref_docname=comment.comment_docname) - template = frappe.get_template("templates/includes/comment.html") + template = frappe.get_template("templates/includes/comments/comment.html") return template.render({"comment": comment.as_dict()}) diff --git a/frappe/templates/includes/form_macros.html b/frappe/templates/includes/form_macros.html index abce2b8006..ad25333a82 100644 --- a/frappe/templates/includes/form_macros.html +++ b/frappe/templates/includes/form_macros.html @@ -1,5 +1,5 @@ -{% macro make_select(klass=None, options=None, attributes=None) %} -