styling
This commit is contained in:
		@ -100,7 +100,7 @@ class Sound(models.Model):
 | 
				
			|||||||
    def _upload_to(self, filename):
 | 
					    def _upload_to(self, filename):
 | 
				
			||||||
        subdir = AIRCOX_SOUND_ARCHIVES_SUBDIR if self.type == self.TYPE_ARCHIVE else \
 | 
					        subdir = AIRCOX_SOUND_ARCHIVES_SUBDIR if self.type == self.TYPE_ARCHIVE else \
 | 
				
			||||||
                 AIRCOX_SOUND_EXCERPTS_SUBDIR
 | 
					                 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 = models.FileField(
 | 
				
			||||||
        _('file'), upload_to=_upload_to
 | 
					        _('file'), upload_to=_upload_to
 | 
				
			||||||
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -107,7 +107,7 @@ Usefull context:
 | 
				
			|||||||
                        {% block main %}
 | 
					                        {% block main %}
 | 
				
			||||||
                            {% block content %}
 | 
					                            {% block content %}
 | 
				
			||||||
                            {% if page and page.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 %}
 | 
					                            {% endif %}
 | 
				
			||||||
                            {% endblock %}
 | 
					                            {% endblock %}
 | 
				
			||||||
                        {% endblock main %}
 | 
					                        {% endblock main %}
 | 
				
			||||||
 | 
				
			|||||||
@ -40,7 +40,7 @@ Context:
 | 
				
			|||||||
    <div class="media box">
 | 
					    <div class="media box">
 | 
				
			||||||
        <div class="media-content">
 | 
					        <div class="media-content">
 | 
				
			||||||
            <p>
 | 
					            <p>
 | 
				
			||||||
                <strong>{{ comment.nickname }}</strong>
 | 
					                <strong class="mr-2">{{ comment.nickname }}</strong>
 | 
				
			||||||
                <time datetime="{{ comment.date }}" title="{{ comment.date }}">
 | 
					                <time datetime="{{ comment.date }}" title="{{ comment.date }}">
 | 
				
			||||||
                    <small>{{ comment.date|naturaltime }}</small>
 | 
					                    <small>{{ comment.date|naturaltime }}</small>
 | 
				
			||||||
                </time>
 | 
					                </time>
 | 
				
			||||||
 | 
				
			|||||||
@ -24,8 +24,8 @@ aircox.init({apiUrl: "{% url "admin:api:streamer-list" %}"},
 | 
				
			|||||||
                </span>
 | 
					                </span>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="navbar-end">
 | 
					            <div class="navbar-end">
 | 
				
			||||||
                <div class="select navbar-item">
 | 
					                <div class="control navbar-item">
 | 
				
			||||||
                    <select onchange="selectStreamer" class="control"
 | 
					                    <select onchange="selectStreamer" class="select"
 | 
				
			||||||
                            title="{% trans "Select a station" %}"
 | 
					                            title="{% trans "Select a station" %}"
 | 
				
			||||||
                            aria-label="{% trans "Select a station" %}">
 | 
					                            aria-label="{% trans "Select a station" %}">
 | 
				
			||||||
                        <option v-for="streamer of streamers" :value="streamer.id">[[ streamer.data.name ]]</option>
 | 
					                        <option v-for="streamer of streamers" :value="streamer.id">[[ streamer.data.name ]]</option>
 | 
				
			||||||
 | 
				
			|||||||
@ -40,7 +40,7 @@
 | 
				
			|||||||
            <div class="media-content">
 | 
					            <div class="media-content">
 | 
				
			||||||
                <slot name="content" :loaded='loaded' :live='live'></slot>
 | 
					                <slot name="content" :loaded='loaded' :live='live'></slot>
 | 
				
			||||||
                <AProgress v-if="loaded && duration" :value="currentTime" :max="this.duration"
 | 
					                <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>
 | 
					                    @select="audio.currentTime = $event"></AProgress>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="media-right">
 | 
					            <div class="media-right">
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user