From ed1e348d678aeb2f620f9f0f58bc0831aeadb3bb Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Fri, 26 Jan 2018 16:11:56 +0100 Subject: [PATCH] Display publishing status of a texture node only to editors --- src/templates/nodes/custom/texture/view_embed.pug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/templates/nodes/custom/texture/view_embed.pug b/src/templates/nodes/custom/texture/view_embed.pug index 9366070e..daf5163a 100644 --- a/src/templates/nodes/custom/texture/view_embed.pug +++ b/src/templates/nodes/custom/texture/view_embed.pug @@ -42,6 +42,8 @@ span.texture-info-seamless i.pi-puzzle | {% if not node.properties.is_tileable %}Not {% endif %}Seamless + | {% if node.has_method('PUT') %} + | {# Display publishing status only to editors #} span.texture-info-status | {% if node.properties.status == 'published' %} i.pi-laugh @@ -49,6 +51,7 @@ i.pi-displeased | {% endif %} | {{ node.properties.status }} + | {% endif %} | {% for f in node.properties.files %} section.node-row.texture-map