Display Blog on the sidebar, if available
This commit is contained in:
@@ -49,8 +49,9 @@ def jstree_get_children(node_id, project_id=None):
|
|||||||
if child.node_type not in ['comment', 'post']:
|
if child.node_type not in ['comment', 'post']:
|
||||||
if child.properties.status == 'published':
|
if child.properties.status == 'published':
|
||||||
children_list.append(jstree_parse_node(child))
|
children_list.append(jstree_parse_node(child))
|
||||||
elif child.node_type == 'blog':
|
# TODO: Remove this code (blog now accessible from sidebar)
|
||||||
children_list.append(jstree_parse_node(child))
|
# elif child.node_type == 'blog':
|
||||||
|
# children_list.append(jstree_parse_node(child))
|
||||||
elif current_user.is_authenticated and child.user == current_user.objectid:
|
elif current_user.is_authenticated and child.user == current_user.objectid:
|
||||||
children_list.append(jstree_parse_node(child))
|
children_list.append(jstree_parse_node(child))
|
||||||
except ForbiddenAccess:
|
except ForbiddenAccess:
|
||||||
|
@@ -58,6 +58,14 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css', v
|
|||||||
| {% else %}
|
| {% else %}
|
||||||
i.pi-home
|
i.pi-home
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
| {% if project.nodes_blog %}
|
||||||
|
li.tabs-blog(
|
||||||
|
title="Blog",
|
||||||
|
data-toggle="tooltip",
|
||||||
|
data-placement="left")
|
||||||
|
a(href="{{url_for('main.project_blog', project_url=project.url)}}")
|
||||||
|
i.pi-newspaper
|
||||||
|
| {% endif %}
|
||||||
li.tabs-browse(
|
li.tabs-browse(
|
||||||
title="Browse",
|
title="Browse",
|
||||||
data-toggle="tooltip",
|
data-toggle="tooltip",
|
||||||
|
Reference in New Issue
Block a user