forked from rc/aircox
		
	add templates
This commit is contained in:
		
							
								
								
									
										19
									
								
								cms/templates/cms/detail.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								cms/templates/cms/detail.html
									
									
									
									
									
										Normal 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 %}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								cms/templates/cms/embed.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								cms/templates/cms/embed.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
{# Used for embedded content #}
 | 
			
		||||
{% block content %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										11
									
								
								cms/templates/cms/menu.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								cms/templates/cms/menu.html
									
									
									
									
									
										Normal 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>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								cms/templates/cms/raw.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								cms/templates/cms/raw.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
{# #}
 | 
			
		||||
							
								
								
									
										33
									
								
								cms/templates/cms/section.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								cms/templates/cms/section.html
									
									
									
									
									
										Normal 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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										22
									
								
								cms/templates/cms/section_list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								cms/templates/cms/section_list.html
									
									
									
									
									
										Normal 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 %}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user