From dea6dd5242e8677943d7495e75efffe16efe0994 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 29 Nov 2016 15:58:21 +0100 Subject: [PATCH] Show Public status on textures --- src/styles/_project.sass | 3 +++ src/templates/nodes/custom/texture/view_embed.jade | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/styles/_project.sass b/src/styles/_project.sass index 0a07a7d5..c3644e68 100644 --- a/src/styles/_project.sass +++ b/src/styles/_project.sass @@ -810,6 +810,9 @@ $node-preview-max-height-lg: 700px margin-right: 10px color: $color-text-dark-secondary + &.public, &.public span + color: $color-success + .texture-backdrop background: size: cover diff --git a/src/templates/nodes/custom/texture/view_embed.jade b/src/templates/nodes/custom/texture/view_embed.jade index 9036cfaf..15e179f8 100644 --- a/src/templates/nodes/custom/texture/view_embed.jade +++ b/src/templates/nodes/custom/texture/view_embed.jade @@ -24,6 +24,14 @@ | {% endif %} | {% endif %} + | {% if node.permissions.world %} + .texture-license.public( + data-toggle="tooltip", + data-placement="bottom", + title="Anybody can download. Share it!") + i.pi-lock-open + span Public + | {% endif %} section.node-row.texture-info | {% if node.properties.files %}