fix stuff; sound inline in admin

This commit is contained in:
bkfox
2020-09-16 15:12:05 +02:00
parent 35e7e407e7
commit 361cf88bb2
8 changed files with 36 additions and 64 deletions

View File

@ -28,7 +28,7 @@ The audio player
</template>
<template v-slot:track="{ onAir }">
<h4 class="title is-4">
<h4 class="title is-4" :aria-description="{% trans "Track currently on air" %}">
<span class="has-text-info is-size-3">&#9836;</span>
<span>[[ onAir.title ]]</span>
<span class="has-text-grey-dark has-text-weight-light">
@ -39,14 +39,14 @@ The audio player
</template>
<template v-slot:diffusion="{ onAir }">
<h4 class="title is-4">
<h4 class="title is-4" :aria-description="{% trans "Diffusion currently on air" %}">
<a :href="onAir.url">[[ onAir.title ]]</a>
</h4>
<div class="">[[ onAir.info ]]</div>
</template>
<template v-slot:empty>
<h4 class="title is-4">{{ station.name }}</h4>
<h4 class="title is-4" :aria-description="{% trans "Currently playing" %}">{{ station.name }}</h4>
</template>
</a-player>
</div>

View File

@ -3,9 +3,11 @@ List item for a podcast.
{% endcomment %}
<div class="podcast">
{# comment #}
{% if object.embed %}
{{ object.embed|safe }}
{% else %}
{# endcomment #}
<audio src="{{ object.url }}" controls>
{% endif %}
</div>