diff --git a/src/templates/nodes/custom/_node_details.pug b/src/templates/nodes/custom/_node_details.pug deleted file mode 100644 index b29d2ff9..00000000 --- a/src/templates/nodes/custom/_node_details.pug +++ /dev/null @@ -1,121 +0,0 @@ -.node-details-header - .node-title#node-title - | {{node.name}} - -| {% if node.description %} -.node-details-description#node-description - | {{ node.description | markdown }} -| {% endif %} - -.node-details-meta - ul - | {% if node.has_method('PUT') and (node.properties.status != 'published') %} - li(class="status-{{ node.properties.status }}") - | {{ node.properties.status | undertitle }} - | {% endif %} - - li(title="Author") - | {{ node.user.full_name }} - - li.dim( - title="Created {{ node._created }} (updated {{ node._updated | pretty_date_time }})") - | {{ node._created | pretty_date }} - - | {% if node.short_link %} - li.shared - a(href="{{ node.short_link }}") - i.pi-share - | Shared - | {% endif %} - - li.left-side - - | {% if node.file %} - li.dim(title="File size") - | {{ node.file.length | filesizeformat }} - li.dim(title="File format") - | {{ node.file.content_type }} - | {% endif %} - - | {% if node.permissions.world %} - li.public( - data-toggle="tooltip", - data-placement="bottom", - title="Anybody can download. Share it!") - i.pi-lock-open - span Public - | {% endif %} - - | {% if node.file and (current_user.has_cap('subscriber') or node.permissions.world) %} - li.download - | {% if node.properties.content_type == 'video' %} - | {% if node.file_variations %} - button.btn.btn-default.dropdown-toggle( - type="button", - data-toggle="dropdown", - aria-haspopup="true", - aria-expanded="false") - i.pi-download - | Download - i.pi-angle-down.icon-dropdown-menu - - ul.dropdown-menu - | {% for variation in node.file_variations %} - li - a(href="{{ variation.link }}", - title="Download this format", - download) - span.length {{ variation.length | filesizeformat }} - - span.format {{ variation.format }} - span.size {{ variation.size }} - - | {% endfor %} - | {% endif %} - | {% else %} - li.download - a( - title="Download {{ node.properties.content_type | undertitle }}", - href="{{ node.file.link }}", - download="{{ node.file.filename }}") - button.btn(type="button") - i.pi-download - | Download - | {% endif %} - - | {% elif current_user.has_cap('can-renew-subscription') %} - li.download - a.btn.btn-success( - title="Renew your subscription to download", - target="_blank", - href="/renew") - i.pi-heart - | Renew subscription to download - - | {% elif current_user.is_authenticated %} - li.download - a.btn( - title="Join Blender Cloud", - href="{{ url_for('cloud.join') }}") - i.pi-lock - | Download - | {% else %} - li.download - a.btn( - title="Login to download {{ node.properties.content_type | undertitle }}", - href="{{ url_for('users.login') }}") - i.pi-lock - | Download - | {% endif %} - -| {% if node.properties.license_type %} -a.node-details-license( - href="https://creativecommons.org/licenses/", - target="_blank") - span.type - i(class="pi-license-{{ node.properties.license_type }}") - | License {{ node.properties.license_type }} - | {% if node.properties.license_notes %} - | — {{ node.properties.license_notes }} - | {% endif %} -| {% endif %}