work on liquidsoap script (fix & fade) + fix errors in monitor

This commit is contained in:
bkfox
2016-08-02 19:46:31 +02:00
parent d62a47ffe5
commit f5dbc93f7f
9 changed files with 126 additions and 65 deletions

View File

@ -530,9 +530,10 @@ class SectionItemMeta(models.base.ModelBase):
cl = super().__new__(cls, name, bases, attrs)
if not 'template' in attrs:
cl.snake_name = camelcase_to_underscore(name)
cl.template = '{}/sections/{}.html'.format(
cl._meta.app_label,
camelcase_to_underscore(name),
cl.snake_name,
)
if name != 'SectionItem':
try:

View File

@ -76,6 +76,11 @@ nav.menu {
display: inline-block;
}
.menu.top a {
display: inline-block;
margin: 0.2em 1em;
}
.page_left > section,
.page_right > section {
margin-bottom: 1em;
@ -328,4 +333,3 @@ main .body ~ section:not(.comments) {
}

View File

@ -87,7 +87,8 @@ main {
}
main .content img.cover {
width: 100%;
width: calc(100% + 2em);
margin-left: -1em;
}

View File

@ -1,4 +1,4 @@
<section class="section_item {{ self.css_class }}">
<section class="section_item {{ self.css_class }} {{ self.snake_name }}">
{% block title %}
{% if self.show_title %}<h2>{{ self.title }}</h2>{% endif %}
{% endblock %}