add templates

This commit is contained in:
bkfox 2015-10-02 15:31:57 +02:00
parent 7069ed8918
commit 91b1c64024
6 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{# {% extends "website/base.html" %} #}
{% block title %}
{{ object.title }}
{% endblock %}
{% block pre_title %}
<time datetime="{{ object.date }}">
{{ object.date|date:'l d F Y' }},
{{ object.date|time:'H\hi' }}
</time>
{% endblock %}
{% block content %}
{% for section in sections %}
{{ section|safe }}
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,4 @@
{# Used for embedded content #}
{% block content %}
{% endblock %}

View File

@ -0,0 +1,11 @@
<div class="menu menu_{{ position }} {{ classes }}"
{% if name %}
name="menu_{{ name }}"
id="menu_{{ name }}"
{% endif %}>
{% for section in sections %}
{{ section|safe }}
{% endfor %}
</div>

View File

@ -0,0 +1 @@
{# #}

View File

@ -0,0 +1,33 @@
<div class="section {{ classes }}">
{% if title %}
<h1>
{% block section_title %}
{{ title }}
{% endblock %}
</h1>
{% endif %}
{% if header %}
<header class="section_header">
{% block section_header %}
{{ header }}
{% endblock %}
</header>
{% endif %}
<div class="section_content">
{% block section_content %}
{{ content|safe }}
{% endblock %}
</div>
{% if bottom %}
<div class="section_bottom">
{% block section_bottom %}
{{ bottom }}
{% endblock %}
</div>
{% endif %}
</div>

View File

@ -0,0 +1,22 @@
{% extends "cms/section.html" %}
{% load thumbnail %}
{% block section_content %}
<ul style="padding:0; margin:0">
{% for item in object_list %}
<li>
{% if use_icons and item.icon %}
<img src="{% thumbnail item.icon icon_size crop %}" class="icon">
{% endif %}
{{ item.title }}
{% if item.text %}
<small>{{ item.text }}</small>
{% endif %}
</li>
{% endfor %}
</ul>
{% endblock %}