This commit is contained in:
bkfox
2015-10-03 14:58:44 +02:00
parent f9d2d47ee6
commit 1a5dcc3eb9
45 changed files with 380 additions and 321 deletions

View File

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

View File

@ -1,49 +0,0 @@
<html>
<head>
<title>{{ website.name }} {% if title %}- {{ title }} {% endif %}</title>
</head>
<body>
{% if menus.top %}
{{ menus.top|safe }}
{% endif %}
{% block header %}
{% if menus.header %}
<header>
{{ menus.header|safe }}
</header>
{% endif %}
{% endblock %}
<div class="page">
{% if menus.left %}
{{ menus.left|safe }}
{% endif %}
<main>
{% block pre_title %}
{% endblock %}
<h1>
{% block title %}
{{ title }}
{% endblock %}
</h1>
{% block post_title %}
{% endblock %}
<div class="content">
{% block content %}
{% endblock %}
</div>
</main>
</div>
{% block footer %}
{% if menus.footer %}
<footer>
{{ menus.footer|safe }}
</footer>
{% endif %}
{% endblock %}
</body>
</html>

View File

@ -1,19 +0,0 @@
{% extends embed|yesno:"cms/base_content.html,cms/base_site.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

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

View File

@ -1,44 +0,0 @@
{% extends embed|yesno:"cms/base_content.html,cms/base_site.html" %}
{% load i18n %}
{% load thumbnail %}
{% block content %}
<div class="post_list {{ classes }}">
{% for post in object_list %}
<a class="post_item"
href="{{ post.detail_url }}">
{% if 'date' in view.fields or 'time' in list.fields %}
<time datetime="{{ post.date }}" class="post_datetime">
{% if 'date' in view.fields %}
<span class="post_date">
{{ post.date|date:'D. d F' }},
</span>
{% endif %}
{% if 'time' in view.fields %}
<span class="post_time">
{{ post.date|date:'H:i' }},
</span>
{% endif %}
</time>
{% endif %}
{% if 'image' in view.fields %}
<img src="{% thumbnail post.image "64x64" crop %}" class="post_image">
{% endif %}
{% if 'title' in view.fields %}
<h4 class="post_title">{{ post.title }}</h4>
{% endif %}
{% if 'content' in view.fields %}
<div class="post_content">
{{ post.content|safe|striptags|truncatechars:"64" }}
</div>
{% endif %}
</a>
{% endfor %}
</div>
{% endblock %}

View File

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

View File

@ -1,33 +0,0 @@
<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

@ -1,22 +0,0 @@
{% 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 %}