forked from rc/aircox
		
	work on liquidsoap script (fix & fade) + fix errors in monitor
This commit is contained in:
		@ -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:
 | 
			
		||||
 | 
			
		||||
@ -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) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -87,7 +87,8 @@ main {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    main .content img.cover {
 | 
			
		||||
       width: 100%;
 | 
			
		||||
       width: calc(100% + 2em);
 | 
			
		||||
       margin-left: -1em;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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 %}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user