Display publishing status of a texture node only to editors

This commit is contained in:
Francesco Siddi 2018-01-26 16:11:56 +01:00
parent 660b7a3811
commit ed1e348d67

View File

@ -42,6 +42,8 @@
span.texture-info-seamless span.texture-info-seamless
i.pi-puzzle i.pi-puzzle
| {% if not node.properties.is_tileable %}Not {% endif %}Seamless | {% if not node.properties.is_tileable %}Not {% endif %}Seamless
| {% if node.has_method('PUT') %}
| {# Display publishing status only to editors #}
span.texture-info-status span.texture-info-status
| {% if node.properties.status == 'published' %} | {% if node.properties.status == 'published' %}
i.pi-laugh i.pi-laugh
@ -49,6 +51,7 @@
i.pi-displeased i.pi-displeased
| {% endif %} | {% endif %}
| {{ node.properties.status }} | {{ node.properties.status }}
| {% endif %}
| {% for f in node.properties.files %} | {% for f in node.properties.files %}
section.node-row.texture-map section.node-row.texture-map