/
_piece.html
47 lines (42 loc) · 1.44 KB
/
_piece.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<article class="piece">
<h3>
<a href="/{{piece.collection.copyright_holder.username}}/{{piece.collection.slug}}/{{piece.slug}}">{{piece.name}}</a>
</h3>
<a href="{{piece.url}}" download>download</a>
<p>{{piece.description}}</p>
{% if piece.type.startswith("audio/") %}
<audio controls src="{{piece.url}}"></audio>
{% endif %}
{% if piece.type.startswith("image/") %}
<img src="{{piece.url}}">
{% endif %}
{% if piece.type.startswith("video/") %}
<video controls src="{{piece.url}}"></video>
{% endif %}
<p xmlns:dct="http://purl.org/dc/terms/"
xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
<a rel="license"
href="https://creativecommons.org/publicdomain/zero/1.0/">
<img src="https://i.creativecommons.org/p/zero/1.0/88x31.png"
style="border-style: none;"
alt="CC0" />
</a>
<br />
To the extent possible under law,
<a rel="dct:publisher"
href="{{collection.copyright_holder.website}}">
<span property="dct:title">
{{collection.copyright_holder.legal_name}}</span>
</a>
has waived all copyright and related or neighboring rights to
<span property="dct:title">
{{piece.name}}
</span>.
This work is published from:
<span property="vcard:Country"
datatype="dct:ISO3166"
content="{{collection.copyright_holder.country_code or 'GB'}}"
about="{{collection.copyright_holder.country or 'United Kingdom'}}">
{{collection.country or 'United Kingdom'}}
</span>.
</article>