Fix Download button showing when not logged in
This commit is contained in:
parent
7d48c02fa3
commit
4e153413d9
@ -36,7 +36,7 @@
|
|||||||
span Public
|
span Public
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
| {% if node.file %}
|
| {% if node.file and node.file.link %}
|
||||||
li.download
|
li.download
|
||||||
| {% if node.properties.content_type == 'video' %}
|
| {% if node.properties.content_type == 'video' %}
|
||||||
| {% if node.file_variations %}
|
| {% if node.file_variations %}
|
||||||
@ -63,21 +63,23 @@
|
|||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
| {% else %}
|
| {% else %}
|
||||||
a(
|
li.download
|
||||||
title="Download {{ node.properties.content_type | undertitle }}",
|
a(
|
||||||
href="{{ node.file.link }}",
|
title="Download {{ node.properties.content_type | undertitle }}",
|
||||||
download="{{ node.file.filename }}")
|
href="{{ node.file.link }}",
|
||||||
button.btn(type="button")
|
download="{{ node.file.filename }}")
|
||||||
i.pi-download
|
button.btn(type="button")
|
||||||
| Download
|
i.pi-download
|
||||||
|
| Download
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
| {% else %}
|
| {% else %}
|
||||||
a.btn(
|
li.download
|
||||||
title="Login to download {{ node.properties.content_type | undertitle }}",
|
a.btn(
|
||||||
href="{{ url_for('users.login') }}")
|
title="Login to download {{ node.properties.content_type | undertitle }}",
|
||||||
i.pi-lock
|
href="{{ url_for('users.login') }}")
|
||||||
| Download
|
i.pi-lock
|
||||||
|
| Download
|
||||||
|
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user