forked from rc/aircox
update dependencies to Django 4.1 + rename blocktrans/trans templates
This commit is contained in:
@ -6,8 +6,8 @@ The audio player
|
||||
<br>
|
||||
|
||||
<div class="box is-fullwidth is-fixed-bottom is-paddingless player"
|
||||
role="{% trans "player" %}"
|
||||
aria-description="{% trans "Audio player used to listen to the radio and podcasts" %}">
|
||||
role="{% translate "player" %}"
|
||||
aria-description="{% translate "Audio player used to listen to the radio and podcasts" %}">
|
||||
<noscript>
|
||||
<audio src="{{ audio_streams.0 }}" controls>
|
||||
{% for stream in audio_streams %}
|
||||
@ -19,13 +19,13 @@ The audio player
|
||||
|
||||
<a-player ref="player"
|
||||
:live-args="{url: '{% url "api:live" %}', timeout:10, src: {{ audio_streams|json }} || []}"
|
||||
button-title="{% trans "Play or pause audio" %}">
|
||||
button-title="{% translate "Play or pause audio" %}">
|
||||
<template v-slot:content="{ loaded, live, current }">
|
||||
<h4 v-if="loaded" class="title is-4">
|
||||
[[ loaded.name ]]
|
||||
</h4>
|
||||
<h4 v-else-if="current && current.data.type == 'track'"
|
||||
class="title is-4" aria-description="{% trans "Track currently on air" %}">
|
||||
class="title is-4" aria-description="{% translate "Track currently on air" %}">
|
||||
<span class="has-text-info is-size-3">♬</span>
|
||||
<span>[[ current.data.title ]]</span>
|
||||
<span class="has-text-grey-dark has-text-weight-light">
|
||||
@ -34,12 +34,12 @@ The audio player
|
||||
</span>
|
||||
</h4>
|
||||
<div v-else-if="live && current && current.data.type == 'diffusion'">
|
||||
<h4 class="title is-4" aria-description="{% trans "Diffusion currently on air" %}">
|
||||
<h4 class="title is-4" aria-description="{% translate "Diffusion currently on air" %}">
|
||||
<a :href="current.data.url">[[ current.data.title ]]</a>
|
||||
</h4>
|
||||
<div class="">[[ current.data.info ]]</div>
|
||||
</div>
|
||||
<h4 v-else class="title is-4" aria-description="{% trans "Currently playing" %}">
|
||||
<h4 v-else class="title is-4" aria-description="{% translate "Currently playing" %}">
|
||||
{{ request.station.name }}
|
||||
</h4>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user