mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix in recent blog list link
This commit is contained in:
@@ -55,7 +55,7 @@ def get_recent_blog_list(args=None):
|
|||||||
if not args: args = webnotes.form_dict
|
if not args: args = webnotes.form_dict
|
||||||
|
|
||||||
query = """\
|
query = """\
|
||||||
select name, title, left(content, 100) as content
|
select name, page_name, title, left(content, 100) as content
|
||||||
from tabBlog
|
from tabBlog
|
||||||
where ifnull(published,0)=1 and
|
where ifnull(published,0)=1 and
|
||||||
name!=%(name)s order by creation desc"""
|
name!=%(name)s order by creation desc"""
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ erpnext.blog.render_recent_list = function(wrapper) {
|
|||||||
hide_refresh: true,
|
hide_refresh: true,
|
||||||
render_row: function(parent, data) {
|
render_row: function(parent, data) {
|
||||||
if(data.content && data.content.length>=100) data.content += '...';
|
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);
|
<div class="comment">%(content)s</div><br>', data);
|
||||||
|
|
||||||
// adjust page height depending on sidebar height
|
// adjust page height depending on sidebar height
|
||||||
|
|||||||
Reference in New Issue
Block a user