mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
[website] [cleanup] separated website generation in framework and erpnext
This commit is contained in:
@@ -74,7 +74,7 @@ def add_comment(args=None):
|
||||
webnotes.webutils.clear_cache(args.get('page_name'))
|
||||
|
||||
comment['comment_date'] = webnotes.utils.global_date_format(comment['creation'])
|
||||
template_args = { 'comment_list': [comment], 'template': 'html/comment.html' }
|
||||
template_args = { 'comment_list': [comment], 'template': 'app/website/templates/html/comment.html' }
|
||||
|
||||
# get html of comment row
|
||||
comment_html = webnotes.webutils.build_html(template_args)
|
||||
|
||||
@@ -82,7 +82,7 @@ def get_group_item_count(item_group):
|
||||
|
||||
def get_item_for_list_in_html(r):
|
||||
scrub_item_for_list(r)
|
||||
r.template = "html/product_in_list.html"
|
||||
r.template = "app/website/templates/html/product_in_list.html"
|
||||
return build_html(r)
|
||||
|
||||
def scrub_item_for_list(r):
|
||||
|
||||
Reference in New Issue
Block a user