From f437899a5b2e27e3d7cee06f7e2b527ea8113711 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 7 Dec 2012 19:59:25 +0530 Subject: [PATCH] fix in blog link --- website/helpers/blog.py | 4 ++-- website/templates/js/blog.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/helpers/blog.py b/website/helpers/blog.py index 65679101bc..02230dcd34 100644 --- a/website/helpers/blog.py +++ b/website/helpers/blog.py @@ -19,7 +19,7 @@ def get_blog_list(args=None): query = """\ select - name, content, owner, creation as creation, + name, page_name, content, owner, creation as creation, title, (select count(name) from `tabComment` where comment_doctype='Blog' and comment_docname=`tabBlog`.name) as comments from `tabBlog` @@ -39,7 +39,7 @@ def get_blog_list(args=None): res['full_name'] = get_fullname(res['owner']) res['published'] = global_date_format(res['creation']) if not res['content']: - res['content'] = website.utils.get_html(res['name']) + res['content'] = website.utils.get_html(res['page_name']) res['content'] = split_blog_content(res['content']) res['content'] = res['content'][:1000] diff --git a/website/templates/js/blog.js b/website/templates/js/blog.js index a5ade31af3..24cdf15ae4 100644 --- a/website/templates/js/blog.js +++ b/website/templates/js/blog.js @@ -31,9 +31,9 @@ wn.pages['{{ name }}'].onload = function(wrapper) { } if(data.content && data.content.length==1000) { - data.content += repl('... (read on)', data); + data.content += repl('... (read on)', data); } - parent.innerHTML = repl('

%(title)s

\ + parent.innerHTML = repl('

%(title)s

\
%(comment_text)s
\ %(content)s

', data); },