remove download attribute if downloads are disabled

This commit is contained in:
odysseusmax
2020-12-17 10:13:41 +05:30
parent 6b54b6546a
commit 6ceb60cf09

View File

@@ -94,7 +94,7 @@
<div class="text-center text-white"> <div class="text-center text-white">
<a class="rounded p-3 bg-indigo-500 hover:bg-indigo-700 shadow-lg{% if block_downloads %} cursor-not-allowed disabled{% endif %}" download="{{name}}" href="{{download_url}}">Download Now! ({{ human_size }})</a> <a class="rounded p-3 bg-indigo-500 hover:bg-indigo-700 shadow-lg{% if block_downloads %} cursor-not-allowed disabled{% else %}" download="{{name}}{% endif %}" href="{{download_url}}">Download Now! ({{ human_size }})</a>
</div> </div>
{% else %} {% else %}