forked from rc/aircox
clean up a bit
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
{% block pre_title %}
|
||||
{% endblock %}
|
||||
{% block title %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
|
||||
<{{ tag }} class="section {{ classes }}"
|
||||
{% for key, value in attrs.items %}{{ key }} = "{{ value|addslashes }}"
|
||||
{% endfor %} >
|
||||
{% block content %}
|
||||
{{ content|safe }}
|
||||
{% endblock %}
|
||||
</{{ tag }}>
|
||||
|
8
cms/templates/aircox/cms/content_object.html
Normal file
8
cms/templates/aircox/cms/content_object.html
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
<{{ tag }} class="{{ classes }}"
|
||||
{% for k, v in attrs.items %}{{ k }} = "{{ v|addslashes }}" {% endfor %} >
|
||||
{% block content %}
|
||||
{{ content|safe }}
|
||||
{% endblock %}
|
||||
</{{ tag }}>
|
||||
|
@ -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 %}
|
||||
|
||||
|
@ -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 %}
|
||||
|
||||
|
@ -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 %}
|
||||
|
||||
|
@ -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}}">
|
||||
|
@ -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 %}
|
||||
|
Reference in New Issue
Block a user