Various fixes
This commit is contained in:
@@ -47,13 +47,18 @@
|
||||
{% endif %}
|
||||
</h5>
|
||||
<hr class="h-px mt-1 mb-3 bg-beige border-0">
|
||||
<div>
|
||||
<div class="flex flex-col items-center">
|
||||
{% if score.img_url is not none %}
|
||||
<div class="flex justify-center">
|
||||
<a href="{{ score.pdf_url or score.img_url }}" target="_blank">
|
||||
<img class="m-2" src="{{ score.img_url }}" />
|
||||
</a>
|
||||
</div>
|
||||
{% if score.pdf_url is not none %}
|
||||
<div class="text-beige border rounded border-beige m-2 p-1">
|
||||
<a href="{{ score.pdf_url }}" target="_blank">Obre el PDF</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% elif score.pdf_url is not none %}
|
||||
{% set pdf_url = score.pdf_url %}
|
||||
{% include "fragments/pdf_viewer.html" %}
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
<ul class="flex flex-row items-center">
|
||||
{% if tema.links %}
|
||||
{% for link in tema.links %}
|
||||
<li class="px-2 text-beige">
|
||||
<a href="{{ link.url }}" target="_blank">
|
||||
{% if link.content_type == ContentType.AUDIO %}
|
||||
<i class="fa fa-volume-up" aria-hidden="true"></i>
|
||||
{% elif link.content_type == ContentType.PARTITURA %}
|
||||
<i class="fa fa-music" aria-hidden="true"></i>
|
||||
{% else %}
|
||||
<i class="fa fa-link" aria-hidden="true"></i>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li class="px-2 text-beige">
|
||||
{% if tema.has_score %}
|
||||
<a href="/tema/{{ tema.id }}" target="_blank">
|
||||
<i class="fa fa-music px-1" aria-hidden="true"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if tema.has_lyrics %}
|
||||
<a href="/tema/{{ tema.id }}" target="_blank">
|
||||
<i class="fa fa-font px-1" aria-hidden="true"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if tema.has_audio %}
|
||||
<a href="/tema/{{ tema.id }}" target="_blank">
|
||||
<i class="fa fa-volume-up px-1" aria-hidden="true"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user