This commit is contained in:
bkfox 2022-03-20 12:24:11 +01:00
parent 65a6c9f90c
commit fd7b504d01
6 changed files with 7 additions and 7 deletions

View File

@ -100,7 +100,7 @@ class Sound(models.Model):
def _upload_to(self, filename):
subdir = AIRCOX_SOUND_ARCHIVES_SUBDIR if self.type == self.TYPE_ARCHIVE else \
AIRCOX_SOUND_EXCERPTS_SUBDIR
return os.path.join(o.program.path, subdir, filename)
return os.path.join(self.program.path, subdir, filename)
file = models.FileField(
_('file'), upload_to=_upload_to

File diff suppressed because one or more lines are too long

View File

@ -107,7 +107,7 @@ Usefull context:
{% block main %}
{% block content %}
{% if page and page.content %}
<section class="page-content">{{ page.content|safe }}</section>
<section class="page-content mb-2">{{ page.content|safe }}</section>
{% endif %}
{% endblock %}
{% endblock main %}

View File

@ -40,7 +40,7 @@ Context:
<div class="media box">
<div class="media-content">
<p>
<strong>{{ comment.nickname }}</strong>
<strong class="mr-2">{{ comment.nickname }}</strong>
<time datetime="{{ comment.date }}" title="{{ comment.date }}">
<small>{{ comment.date|naturaltime }}</small>
</time>

View File

@ -24,8 +24,8 @@ aircox.init({apiUrl: "{% url "admin:api:streamer-list" %}"},
</span>
</div>
<div class="navbar-end">
<div class="select navbar-item">
<select onchange="selectStreamer" class="control"
<div class="control navbar-item">
<select onchange="selectStreamer" class="select"
title="{% trans "Select a station" %}"
aria-label="{% trans "Select a station" %}">
<option v-for="streamer of streamers" :value="streamer.id">[[ streamer.data.name ]]</option>

View File

@ -40,7 +40,7 @@
<div class="media-content">
<slot name="content" :loaded='loaded' :live='live'></slot>
<AProgress v-if="loaded && duration" :value="currentTime" :max="this.duration"
:format="displayTime"
:format="displayTime" class="pt-1 is-size-7"
@select="audio.currentTime = $event"></AProgress>
</div>
<div class="media-right">