clean up a bit

This commit is contained in:
bkfox
2016-05-25 13:26:05 +02:00
parent 14e9994a79
commit fb659c2c30
15 changed files with 130 additions and 322 deletions

View File

@ -1,8 +0,0 @@
{% block pre_title %}
{% endblock %}
{% block title %}
{% endblock %}
{% block content %}
{% endblock %}

View File

@ -1,9 +0,0 @@
<{{ tag }} class="section {{ classes }}"
{% for key, value in attrs.items %}{{ key }} = "{{ value|addslashes }}"
{% endfor %} >
{% block content %}
{{ content|safe }}
{% endblock %}
</{{ tag }}>

View File

@ -0,0 +1,8 @@
<{{ tag }} class="{{ classes }}"
{% for k, v in attrs.items %}{{ k }} = "{{ v|addslashes }}" {% endfor %} >
{% block content %}
{{ content|safe }}
{% endblock %}
</{{ tag }}>

View File

@ -1,4 +1,4 @@
{% extends embed|yesno:"aircox/cms/base_content.html,aircox/cms/base_site.html" %}
{% extends "aircox/cms/website.html" %}
{% load aircox_cms %}
{% block title %}
@ -29,8 +29,6 @@
{% endblock %}
{% block content %}
{% for section in sections %}
{{ section|safe }}
{% endfor %}
{{ content }}
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends embed|yesno:"aircox/cms/base_content.html,aircox/cms/base_site.html" %}
{% extends "aircox/cms/website.html" %}
{% load i18n %}
{% load thumbnail %}
@ -23,7 +23,7 @@
</time>
{% endif %}
{% if 'image' in view.fields %}
{% if 'image' in view.fields and post.image %}
<img src="{% thumbnail post.image view.icon_size crop %}" class="post_image">
{% endif %}

View File

@ -1,4 +1,4 @@
{% extends "aircox/cms/base_section.html" %}
{% extends "aircox/cms/content_object.html" %}
{% block content %}
{% if title %}
@ -30,5 +30,5 @@
{% endblock %}
</footer>
{% endif %}
{% endblock %}

View File

@ -2,7 +2,7 @@
{% load thumbnail %}
{% block section_content %}
% block section_content %}
<ul style="padding:0; margin:0">
{% for item in object_list %}
<li class="{{item.css}}">

View File

@ -1,3 +1,4 @@
{% if not embed %}
{% load staticfiles %}
<html>
@ -32,6 +33,7 @@
{% endif %}
<main>
{% endif %}
{% block pre_title %}
{% endblock %}
<h1>
@ -45,6 +47,7 @@
{% block content %}
{% endblock %}
</div>
{% if not embed %}
</main>
{% if menus.right %}
@ -68,4 +71,5 @@
{% endif %}
</body>
</html>
{% endif %}