Minor tweaks and cleanup on group_hdri, group_texture and texture templates
This commit is contained in:
@@ -4,11 +4,6 @@
|
||||
.texture-title#node-title
|
||||
| {{node.name}}
|
||||
|
||||
| {% if node.picture %}
|
||||
.texture-backdrop(
|
||||
style="background-image: url({{ node.picture.thumbnail('m', api=api) }})")
|
||||
| {% endif %}
|
||||
|
||||
| {% if node.description %}
|
||||
section.node-row
|
||||
.node-details-description
|
||||
|
@@ -4,11 +4,6 @@
|
||||
.texture-title#node-title
|
||||
| {{node.name}}
|
||||
|
||||
| {% if node.picture %}
|
||||
.texture-backdrop(
|
||||
style="background-image: url({{ node.picture.thumbnail('m', api=api) }})")
|
||||
| {% endif %}
|
||||
|
||||
| {% if node.description %}
|
||||
section.node-row
|
||||
.node-details-description
|
||||
|
@@ -33,24 +33,23 @@
|
||||
span Public
|
||||
| {% endif %}
|
||||
|
||||
section.node-row.texture-info
|
||||
ul.node-row.texture-info
|
||||
| {% if node.properties.files %}
|
||||
span.texture-info-files
|
||||
li
|
||||
i.pi-texture
|
||||
| {{ node.properties.files|length }} map{% if node.properties.files|length != 1 %}s{% endif %}
|
||||
| {% endif %}
|
||||
span.texture-info-seamless
|
||||
|
||||
li
|
||||
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
|
||||
| {% else %}
|
||||
i.pi-displeased
|
||||
| {% endif %}
|
||||
| {{ node.properties.status }}
|
||||
| {% if node.has_method('PUT') %}
|
||||
li.status(
|
||||
class="{{ node.properties.status }}",
|
||||
title="Status")
|
||||
| Status: #[strong {{ node.properties.status | undertitle }}]
|
||||
| {% endif %}
|
||||
|
||||
| {% for f in node.properties.files %}
|
||||
|
Reference in New Issue
Block a user