Fix T49930: bug in texture count
This commit is contained in:
parent
dd8d19178b
commit
b3a36f2833
@ -30,7 +30,7 @@ from pillar.web.nodes.custom.storage import StorageNode
|
||||
from pillar.web.projects.routes import project_update_nodes_list
|
||||
from pillar.web.utils import get_file
|
||||
from pillar.web.utils import attach_project_pictures
|
||||
from pillar.web.utils.jstree import jstree_build_children
|
||||
from pillar.web.utils.jstree import jstree_build_children, GROUP_NODES
|
||||
from pillar.web.utils.jstree import jstree_build_from_node
|
||||
from pillar.web.utils.forms import build_file_select_form
|
||||
from pillar.web import system_util
|
||||
@ -159,7 +159,7 @@ def view(node_id, extra_template_args: dict=None):
|
||||
'user': 1, 'properties.content_type': 1}
|
||||
children_where = {'parent': node._id}
|
||||
|
||||
if node_type_name == 'group':
|
||||
if node_type_name in GROUP_NODES:
|
||||
children_where['properties.status'] = 'published'
|
||||
children_projection['permissions.world'] = 1
|
||||
else:
|
||||
|
@ -22,10 +22,7 @@
|
||||
|
||||
section.node-children.group.texture
|
||||
|
||||
| {% if children %}
|
||||
| {% for child in children %}
|
||||
| {% if child.properties.status == 'published' %}
|
||||
|
||||
| {% for child in children %}
|
||||
a.list-node-children-container(
|
||||
href="#",
|
||||
data-node_id="{{ child._id }}",
|
||||
@ -114,12 +111,10 @@
|
||||
span {{ child.name }}
|
||||
| {% endif %}
|
||||
|
||||
| {% endif %}
|
||||
| {% endfor %}
|
||||
| {% else %}
|
||||
.list-node-children-container
|
||||
.list-node-children-empty No textures... yet!
|
||||
| {% endif %}
|
||||
| {% endfor %}
|
||||
|
||||
script.
|
||||
// Generate GA pageview
|
||||
@ -193,4 +188,3 @@ script.
|
||||
include ../_scripts
|
||||
|
||||
| {% endblock %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user