fix in recent blog list link
This commit is contained in:
parent
fd684ec247
commit
c7d5fc4952
@ -55,7 +55,7 @@ def get_recent_blog_list(args=None):
|
||||
if not args: args = webnotes.form_dict
|
||||
|
||||
query = """\
|
||||
select name, title, left(content, 100) as content
|
||||
select name, page_name, title, left(content, 100) as content
|
||||
from tabBlog
|
||||
where ifnull(published,0)=1 and
|
||||
name!=%(name)s order by creation desc"""
|
||||
|
@ -59,7 +59,7 @@ erpnext.blog.render_recent_list = function(wrapper) {
|
||||
hide_refresh: true,
|
||||
render_row: function(parent, data) {
|
||||
if(data.content && data.content.length>=100) data.content += '...';
|
||||
parent.innerHTML = repl('<a href="%(name)s.html">%(title)s</a>\
|
||||
parent.innerHTML = repl('<a href="%(page_name)s.html">%(title)s</a>\
|
||||
<div class="comment">%(content)s</div><br>', data);
|
||||
|
||||
// adjust page height depending on sidebar height
|
||||
|
Loading…
x
Reference in New Issue
Block a user