Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
06028d19a3
@ -130,7 +130,7 @@
|
|||||||
},
|
},
|
||||||
"writers": {
|
"writers": {
|
||||||
"template": "app/website/templates/pages/writers",
|
"template": "app/website/templates/pages/writers",
|
||||||
"args_method": "website.helpers.blog.get_writers_args"
|
"args_method": "website.doctype.blogger.blogger.get_writers_args"
|
||||||
},
|
},
|
||||||
"profile": {
|
"profile": {
|
||||||
"no_cache": true,
|
"no_cache": true,
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
|
from webnotes import _
|
||||||
|
|
||||||
class DocType:
|
class DocType:
|
||||||
def __init__(self, d, dl):
|
def __init__(self, d, dl):
|
||||||
@ -23,3 +24,18 @@ class DocType:
|
|||||||
b.doc.blogger = self.doc.name
|
b.doc.blogger = self.doc.name
|
||||||
b.save()
|
b.save()
|
||||||
|
|
||||||
|
def get_writers_args():
|
||||||
|
bloggers = webnotes.conn.sql("""select * from `tabBlogger`
|
||||||
|
where ifnull(posts,0) > 0 and ifnull(disabled,0)=0
|
||||||
|
order by posts desc""", as_dict=1)
|
||||||
|
|
||||||
|
args = {
|
||||||
|
"bloggers": bloggers,
|
||||||
|
"texts": {
|
||||||
|
"all_posts_by": _("All posts by")
|
||||||
|
},
|
||||||
|
"categories": webnotes.conn.sql_list("select name from `tabBlog Category` order by name")
|
||||||
|
}
|
||||||
|
|
||||||
|
args.update(webnotes.doc("Blog Settings", "Blog Settings").fields)
|
||||||
|
return args
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"creation": "2013-03-25 16:00:51",
|
"creation": "2013-03-25 16:00:51",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"modified": "2013-07-05 14:27:34",
|
"modified": "2013-08-30 16:35:24",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"owner": "Administrator"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
@ -39,6 +39,12 @@
|
|||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"name": "Blogger"
|
"name": "Blogger"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "disabled",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "Disabled"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Will be used in url (usually first name).",
|
"description": "Will be used in url (usually first name).",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
@ -119,18 +119,3 @@ def get_blog_template_args():
|
|||||||
}
|
}
|
||||||
args.update(webnotes.doc("Blog Settings", "Blog Settings").fields)
|
args.update(webnotes.doc("Blog Settings", "Blog Settings").fields)
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def get_writers_args():
|
|
||||||
bloggers = webnotes.conn.sql("""select * from `tabBlogger`
|
|
||||||
order by posts desc""", as_dict=1)
|
|
||||||
|
|
||||||
args = {
|
|
||||||
"bloggers": bloggers,
|
|
||||||
"texts": {
|
|
||||||
"all_posts_by": _("All posts by")
|
|
||||||
},
|
|
||||||
"categories": webnotes.conn.sql_list("select name from `tabBlog Category` order by name")
|
|
||||||
}
|
|
||||||
|
|
||||||
args.update(webnotes.doc("Blog Settings", "Blog Settings").fields)
|
|
||||||
return args
|
|
@ -1,8 +1,4 @@
|
|||||||
<style>
|
<style>
|
||||||
[itemprop="articleBody"] {
|
|
||||||
font-size: 120%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-title {
|
.comment-title {
|
||||||
color:#777;
|
color:#777;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user