link to copy template from artwork template fixed

This commit is contained in:
zeroth 2020-12-19 20:25:02 +00:00
parent a1564fee94
commit ba9d7219f0

View File

@ -375,20 +375,22 @@
<!-- img --> <!-- img -->
<div class="artwork-copiesincollection-img-div"> <div class="artwork-copiesincollection-img-div">
{% if "image" in x %} {% if "image" in x %}
<!-- <a href='/artwork?id={{ x["copiesCollections"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'> --> <a href='/copy?id={{ x["copiesCollections"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-copiesincollection-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="artwork-copiesincollection-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
<!-- </a> --> </a>
<br> <br>
{% else %} {% else %}
<!-- <a href='/artwork?id={{ x["copiesCollections"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'> --> <a href='/copy?id={{ x["copiesCollections"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-copiesincollection-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="artwork-copiesincollection-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
<!-- </a> --> </a>
<br> <br>
{% endif %} {% endif %}
</div> </div>
<!-- title/name of collection --> <!-- title/name of collection -->
<div class="artwork-copiesincollection-title-div"> <div class="artwork-copiesincollection-title-div">
<a href='/copy?id={{ x["copiesCollections"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>
{{ x["collectionLabel"]["value"]}} {{ x["collectionLabel"]["value"]}}
</a>
</div> </div>
</div> </div>