update cron script -- mode is now auto
This commit is contained in:
parent
53e475a700
commit
245e837ae3
|
@ -401,6 +401,12 @@ class DatedListBase(models.Model):
|
|||
help_text = _('if selected, show dates navigation per weeks instead '
|
||||
'of show days equally around the current date')
|
||||
)
|
||||
hide_icons = models.BooleanField(
|
||||
_('hide icons'),
|
||||
default = False,
|
||||
help_text = _('if selected, images of publications will not be '
|
||||
'displayed in the list')
|
||||
)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
@ -409,6 +415,7 @@ class DatedListBase(models.Model):
|
|||
MultiFieldPanel([
|
||||
FieldPanel('nav_days'),
|
||||
FieldPanel('nav_per_week'),
|
||||
FieldPanel('hide_icons'),
|
||||
], heading=_('Navigation')),
|
||||
]
|
||||
|
||||
|
|
|
@ -82,7 +82,6 @@ ul {
|
|||
margin: 0.2em 1em;
|
||||
}
|
||||
|
||||
|
||||
body > .top {
|
||||
position: fixed;
|
||||
z-index: 10000000;
|
||||
|
@ -137,6 +136,10 @@ body > .header {
|
|||
}
|
||||
|
||||
|
||||
body section ul {
|
||||
padding: 0em;
|
||||
}
|
||||
|
||||
/** content: list & items **/
|
||||
.list {
|
||||
width: 100%;
|
||||
|
|
|
@ -249,8 +249,6 @@ function Player(id, on_air_url, show_cover) {
|
|||
|
||||
this.init_events();
|
||||
this.load();
|
||||
|
||||
this.update_on_air();
|
||||
}
|
||||
|
||||
Player.prototype = {
|
||||
|
|
|
@ -19,9 +19,7 @@ var sound = player.playlist.add(
|
|||
);
|
||||
sound.item.className += ' live';
|
||||
player.playlist.select(sound, false);
|
||||
|
||||
player.update_on_air();
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -36,10 +36,12 @@
|
|||
{# you might like to hide it by default -- this more for sections #}
|
||||
<h2>{{ day|date:'l d F' }}</h2>
|
||||
{% with item_date_format="H:i" %}
|
||||
{% with list_no_cover=self.hide_icons %}
|
||||
{% for item in list %}
|
||||
{% include "aircox_cms/snippets/date_list_item.html" %}
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
# aircox daily tasks:
|
||||
# - diffusions monitoring for the current month
|
||||
export PATH="/srv/apps/aircox/venv/bin"
|
||||
/srv/apps/aircox/manage.py diffusions_monitor --update --clean --check
|
||||
cd /srv/app/aircox/
|
||||
scripts/launch_in_venv ./manage.py diffusions_monitor --update --clean --check --mode auto
|
||||
# - diffusions monitoring for the next month
|
||||
/srv/apps/aircox/manage.py diffusions_monitor --update --next-month
|
||||
scripts/launch_in_venv ./manage.py diffusions_monitor --update --next-month --mode auto
|
||||
cd -
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user