forked from rc/aircox
start to restructure the project tree
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 }}>
|
||||
|
@ -1,71 +0,0 @@
|
||||
{% load staticfiles %}
|
||||
|
||||
<html>
|
||||
<head>
|
||||
{# FIXME: page tags #}
|
||||
<meta charset="utf-8">
|
||||
<meta name="application-name" content="aircox-cms">
|
||||
<meta name="description" content="{{ website.description }}">
|
||||
<meta name="keywords" content="{{ website.tags }}">
|
||||
|
||||
<link rel="stylesheet" href="{% static "aircox_cms/styles.css" %}" type="text/css">
|
||||
{% if website.styles %}
|
||||
<link rel="stylesheet" href="{% static website.styles %}" type="text/css">
|
||||
{% endif %}
|
||||
<title>{{ website.name }} {% if title %}- {{ title }} {% endif %}</title>
|
||||
</head>
|
||||
<body>
|
||||
{% block header %}
|
||||
{% if menus.header %}
|
||||
{{ menus.header|safe }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
<div class="page-container">
|
||||
{% if menus.top %}
|
||||
{{ menus.top|safe }}
|
||||
{% endif %}
|
||||
|
||||
<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>
|
||||
|
||||
{% if menus.right %}
|
||||
{{ menus.right|safe }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if menus.page_bottom %}
|
||||
{{ menus.page_bottom|safe }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% block footer %}
|
||||
{% if menus.footer %}
|
||||
{{ menus.footer|safe }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% if menus.bottom %}
|
||||
{{ menus.bottom|safe }}
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,19 +0,0 @@
|
||||
{% extends embed|yesno:"aircox_cms/base_content.html,aircox_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 %}
|
||||
|
@ -1,4 +0,0 @@
|
||||
{# Used for embedded content #}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
@ -1,65 +0,0 @@
|
||||
{% extends embed|yesno:"aircox_cms/base_content.html,aircox_cms/base_site.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block content %}
|
||||
<div class="post_list {{ classes }} {% if embed %}embed{% endif %}">
|
||||
{% for post in object_list %}
|
||||
<a class="post_item"
|
||||
href="{{ post.detail_url }}">
|
||||
{% if 'date' in view.fields or 'time' in view.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 view.icon_size crop %}" class="post_image">
|
||||
{% endif %}
|
||||
|
||||
{% if 'title' in view.fields %}
|
||||
<h3 class="post_title">{{ post.title }}</h3>
|
||||
{% endif %}
|
||||
|
||||
{% if 'content' in view.fields %}
|
||||
<div class="post_content">
|
||||
{{ post.content|safe|striptags|truncatechars:"64" }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
{% if embed %}
|
||||
{% with view.get_url as list_url %}
|
||||
{% if list_url %}
|
||||
<a href="{{list_url}}" title="More elements">⇲</a>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% else %}
|
||||
{% if page_obj.has_previous %}
|
||||
<a href="?page={{ page_obj.previous_page_number }}">previous</a>
|
||||
{% endif %}
|
||||
|
||||
<span class="current">
|
||||
{{ page_obj.number }} / {{ page_obj.paginator.num_pages }}
|
||||
</span>
|
||||
|
||||
{% if page_obj.has_next %}
|
||||
<a href="?page={{ page_obj.next_page_number }}">next</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endblock %}
|
||||
|
@ -1,10 +0,0 @@
|
||||
|
||||
<{{ tag }} class="menu menu_{{ position }} {{ classes }}" {% if name %}
|
||||
name="{{ name }}"
|
||||
id="{{ name }}"
|
||||
{% endif %}>
|
||||
{% for section in sections %}
|
||||
{{ section|safe }}
|
||||
{% endfor %}
|
||||
</{{ tag }}>
|
||||
|
@ -1,34 +0,0 @@
|
||||
{% extends "aircox_cms/base_section.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% 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 footer %}
|
||||
<footer class="section_footer">
|
||||
{% block section_footer %}
|
||||
{{ footer }}
|
||||
{% endblock %}
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
@ -1,28 +0,0 @@
|
||||
{% extends "aircox_cms/section.html" %}
|
||||
|
||||
{% load thumbnail %}
|
||||
|
||||
{% block section_content %}
|
||||
<ul style="padding:0; margin:0">
|
||||
{% for item in object_list %}
|
||||
<li>
|
||||
{% if item.url %}
|
||||
<a href="{{item.url}}">
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
{% if item.url %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
@ -1,6 +0,0 @@
|
||||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
||||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
||||
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
||||
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
||||
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
||||
!_TAG_PROGRAM_VERSION 5.8 //
|
Reference in New Issue
Block a user