Compare commits

..

No commits in common. "7cccb6182e63bfb02cba6b458980171b07b4787d" and "202f31d1699dbfa8c7f3f51778465d83bdee545b" have entirely different histories.

17 changed files with 43 additions and 70 deletions

View File

@ -126,11 +126,11 @@ msgstr "type"
#: models/diffusion.py:137 models/log.py:131
msgid "Diffusion"
msgstr "Diffusion"
msgstr "Date de diffusion"
#: models/diffusion.py:138
msgid "Diffusions"
msgstr "Diffusions"
msgstr "Dates de diffusion"
#: models/diffusion.py:139
msgid "edit the diffusions' planification"
@ -325,7 +325,7 @@ msgstr "Page d'accueil"
#: models/page.py:291
msgid "Timetable"
msgstr "Horaires"
msgstr "Temps"
#: models/page.py:292
msgid "Programs list"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -58,7 +58,7 @@
{% if podcasts %}
<section class="container">
<h2 class="title">{% translate "Last podcasts" %}</h2>
<h2 class="title is-3 p-2">{% translate "Last podcasts" %}</h2>
{% include "./widgets/carousel.html" with objects=podcasts url_name="podcast-list" url_label=_("All podcasts") %}
</section>
{% endif %}

View File

@ -2,15 +2,10 @@
{% comment %}Detail page of a show{% endcomment %}
{% load i18n aircox %}
{% block content %}
{{ block.super }}
{% block content-container %}
{% with schedules=object.schedule_set.all %}
{% if object.active and schedules %}
<header class="schedules mt-3">
<h4 class="title is-4 mr-3">
{% translate "Diffusions" %}
</h4>
{% if schedules %}
<header class="container schedules">
{% for schedule in schedules %}
<div class="schedule">
<div class="heading">
@ -38,13 +33,8 @@
{% endif %}
{% endwith %}
{% endblock %}
{% block main %}
{{ block.super }}
{% if episodes %}
<section class="container">
<h2 class="title is-2">{% translate "Last Episodes" %}</h2>

View File

@ -59,7 +59,7 @@
{% block actions %}
{{ block.super }}
{% if object.episodesound_set.available.public.count %}
<button type="button" class="button action" @click="player.playButtonClick($event)"
<button class="button action" @click="player.playButtonClick($event)"
data-sounds="{{ object.podcasts|json }}">
<span class="icon is-small">
<span class="fas fa-play"></span>

View File

@ -16,7 +16,7 @@
</template>
<script>
export default {
emits: ['select', 'unselect', 'move', 'remove'],
emits: ['select', 'unselect', 'move'],
data() {
return {
selectedIndex: this.defaultIndex,
@ -50,16 +50,11 @@ export default {
findIndex(pred) { return this.set.findIndex(pred) },
remove(index, select=false) {
const item = this.set.get(index)
if(!item)
return
this.set.remove(index);
if(index < this.selectedIndex)
this.selectedIndex--;
if(select && this.selectedIndex == index)
this.select(index)
this.$emit('remove', {index, item, set: this.set})
},
select(index) {

View File

@ -274,6 +274,7 @@ export default {
if(event.type == 'ended' && (!this.playlist || this.playlist.selectNext() == -1))
this.play();
},
},
mounted() {

View File

@ -29,7 +29,7 @@ import ASoundItem from './ASoundItem';
export default {
extends: AList,
emits: [...AList.emits],
emits: [...AList.emits, 'remove'],
components: { ASoundItem },
props: {

View File

@ -141,7 +141,7 @@ export default class PageLoad {
let submit = event.type == 'submit';
let target = submit || event.target.tagName == 'A'
? event.target : event.target.closest('a');
if(!target || target.hasAttribute('target') || (target.dataset && target.dataset.forceReload))
if(!target || target.hasAttribute('target') || (target.data && target.data.forceReload))
return;
let url = submit ? target.getAttribute('action') || ''

View File

@ -16,7 +16,7 @@ input.half-field:not(:active):not(:hover) {
--body-bg: #fff;
--text-color: black;
--text-color-light: #555;
--break-color: rgb(225, 225, 225, 0.8);
--break-color: rgb(225, 225, 225);
--main-color: #EFCA08;
--main-color-light: #F4da51;
@ -67,7 +67,7 @@ body.mobile {
}
@media screen and (max-width: v.$screen-normal) {
html { font-size: 16px !important; }
html { font-size: 18px !important; }
}
@media screen and (max-width: v.$screen-wider) {
@ -75,7 +75,7 @@ body.mobile {
}
@media screen and (min-width: v.$screen-wider) {
html { font-size: 20px !important; }
html { font-size: 24px !important; }
}
h1, h2, h3, h4, h5, h6, .heading, .title, .subtitle {

View File

@ -1,10 +1,10 @@
@use "vars" as v;
:root {
--title-1-sz: 1.4rem;
--title-2-sz: 1.3rem;
--title-3-sz: 1.1rem;
--title-4-sz: 1.0rem;
--title-1-sz: 1.6rem;
--title-2-sz: 1.4rem;
--title-3-sz: 1.3rem;
--title-4-sz: 1.2rem;
--subtitle-1-sz: 1.6rem;
--subtitle-2-sz: 1.4rem;
--subtitle-3-sz: 1.2rem;
@ -16,17 +16,22 @@
--heading-hg-bg: var(--secondary-color);
--heading-link-hv-fg: var(--link-fg);
--cover-w: 10rem;
--cover-h: 10rem;
--cover-w: 14rem;
--cover-h: 14rem;
--cover-small-w: 10rem;
--cover-small-h: 10rem;
--cover-tiny-w: 10rem;
--cover-tiny-h: 10rem;
--card-w: var(--cover-w);
--preview-bg: var(--body-bg);
--preview-title-sz: var(--title-4-sz);
--preview-subtitle-sz: var(--title-4-sz);
--preview-title-sz: var(--title-3-sz);
--preview-subtitle-sz: var(--title-3-sz);
--preview-cover-size: 14rem;
--preview-cover-small-size: 10rem;
--preview-cover-tiny-size: 4rem;
--preview-wide-content-sz: #{v.$text-size-2};
--preview-heading-bg-color: var(--main-color);
--header-height: var(--cover-h);
@ -91,23 +96,6 @@
}
}
@media screen and (max-width: v.$screen-wide) {
:root {
--cover-w: 8rem;
--cover-h: 8rem;
--cover-small-w: 4rem;
--cover-small-h: 4rem;
--cover-tiny-w: 2rem;
--cover-tiny-h: 2rem;
--section-content-sz: 1rem;
// --preview-title-sz: #{v.$text-size};
// --preview-subtitle-sz: #{v.$text-size-smaller};
// --preview-wide-content-sz: #{v.$text-size};
}
}
// ---- headings
.no-reset h1 { font-size: var(--title-1-sz); }
@ -145,7 +133,7 @@
&:not(:empty) {
// border-bottom: 1px var(--heading-bg) solid;
// color: var(--heading-fg);
//padding: v.$mp-2;
padding: v.$mp-2;
margin-top: 0em !important;
vertical-align: top;
@ -318,16 +306,16 @@
&.small, .preview.small & {
min-width: unset;
height: var(--cover-small-h);
width: var(--cover-small-w) !important;
min-width: var(--cover-small-w);
height: var(--preview-cover-small-size);
width: var(--preview-cover-small-size) !important;
min-width: var(--preview-cover-small-size);
}
&.tiny, .preview.tiny & {
min-width: unset;
height: var(--cover-tiny-h);
width: var(--cover-tiny-w) !important;
min-width: var(--cover-tiny-w);
height: var(--preview-cover-tiny-size);
width: var(--preview-cover-tiny-size) !important;
min-width: var(--preview-cover-tiny-size);
}
}
@ -390,7 +378,7 @@
margin-bottom: unset;
.list-item:not(.no-cover) & {
min-height: var(--cover-small-h);
min-height: var(--preview-cover-small-size);
}
}

View File

@ -22,7 +22,7 @@
&:not(:last-child) {
padding-bottom: calc(v.$mp-4 / 2);
// border-bottom: 2px var(--break-color) solid;
border-bottom: 2px var(--break-color) solid;
}
> .title, h3.title {
@ -60,8 +60,7 @@
margin: v.$mp-3;
margin-left: 0rem;
padding: v.$mp-2;
text-color: var(--main-color);
background-color: var(--main-color-light);
border-bottom: 1px var(--main-color) solid;
.heading {
padding: 0em;