[docs] added for translate and api
This commit is contained in:
parent
9481e037d2
commit
855d92d957
@ -84,6 +84,7 @@
|
|||||||
"args_method": "website.doctype.about_us_settings.about_us_settings.get_args"
|
"args_method": "website.doctype.about_us_settings.about_us_settings.get_args"
|
||||||
},
|
},
|
||||||
"account": {
|
"account": {
|
||||||
|
"no_cache": true,
|
||||||
"template": "app/website/templates/pages/account"
|
"template": "app/website/templates/pages/account"
|
||||||
},
|
},
|
||||||
"attributions": {
|
"attributions": {
|
||||||
@ -106,6 +107,7 @@
|
|||||||
"args_method": "selling.doctype.sales_order.sales_order.get_website_args"
|
"args_method": "selling.doctype.sales_order.sales_order.get_website_args"
|
||||||
},
|
},
|
||||||
"orders": {
|
"orders": {
|
||||||
|
"no_cache": true,
|
||||||
"template": "app/website/templates/pages/orders",
|
"template": "app/website/templates/pages/orders",
|
||||||
"args_method": "selling.doctype.sales_order.sales_order.get_currency_and_number_format"
|
"args_method": "selling.doctype.sales_order.sales_order.get_currency_and_number_format"
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
"docs.dev.install",
|
"docs.dev.install",
|
||||||
"docs.dev.quickstart",
|
"docs.dev.quickstart",
|
||||||
"docs.dev.framework",
|
"docs.dev.framework",
|
||||||
"docs.dev.modules"
|
"docs.dev.api",
|
||||||
|
"docs.dev.modules",
|
||||||
|
"docs.dev.translate",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
@ -21,7 +21,9 @@ wn.pages['latest-updates'].onload = function(wrapper) {
|
|||||||
var $tbody = $('<table class="table table-bordered"><tbody></tbody></table>')
|
var $tbody = $('<table class="table table-bordered"><tbody></tbody></table>')
|
||||||
.appendTo(parent).find("tbody");
|
.appendTo(parent).find("tbody");
|
||||||
$.each(r.message, function(i, log) {
|
$.each(r.message, function(i, log) {
|
||||||
if(log.message.indexOf("minor")===-1 && log.message.indexOf("[")!==-1) {
|
if(log.message.indexOf("minor")===-1
|
||||||
|
&& log.message.indexOf("docs")===-1
|
||||||
|
&& log.message.indexOf("[")!==-1) {
|
||||||
log.message = log.message.replace(/(\[[^\]]*\])/g,
|
log.message = log.message.replace(/(\[[^\]]*\])/g,
|
||||||
function(match, p1, offset, string) {
|
function(match, p1, offset, string) {
|
||||||
match = match.toLowerCase();
|
match = match.toLowerCase();
|
||||||
|
@ -92,14 +92,15 @@ def add_comment(args=None):
|
|||||||
comment_doctype='Blog Post' and comment_docname=%s and
|
comment_doctype='Blog Post' and comment_docname=%s and
|
||||||
ifnull(unsubscribed, 0)=0""", args.get('comment_docname'))]
|
ifnull(unsubscribed, 0)=0""", args.get('comment_docname'))]
|
||||||
|
|
||||||
blog = webnotes.conn.sql("""select * from `tabBlog Post` where name=%s""",
|
blog = webnotes.doc("Blog Post", args.get("comment_docname"))
|
||||||
args.get('comment_docname'), as_dict=1)[0]
|
blogger_profile = webnotes.conn.get_value("Blogger", blog.blogger, "profile")
|
||||||
|
blogger_email = webnotes.conn.get_value("Profile", blogger_profile, "email")
|
||||||
|
|
||||||
from webnotes.utils.email_lib.bulk import send
|
from webnotes.utils.email_lib.bulk import send
|
||||||
send(recipients=list(set(commentors + [blog['owner']])),
|
send(recipients=list(set(commentors + [blogger_email])),
|
||||||
doctype='Comment',
|
doctype='Comment',
|
||||||
email_field='comment_by',
|
email_field='comment_by',
|
||||||
subject='New Comment on Blog: ' + blog['title'],
|
subject='New Comment on Blog: ' + blog.title,
|
||||||
message='%(comment)s<p>By %(comment_by_fullname)s</p>' % args)
|
message='%(comment)s<p>By %(comment_by_fullname)s</p>' % args)
|
||||||
|
|
||||||
return comment_html.replace("\n", "")
|
return comment_html.replace("\n", "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user