kopia lustrzana https://github.com/rtts/django-simplecms
19 wiersze
522 B
HTML
19 wiersze
522 B
HTML
{% extends 'base.html' %}
|
|
{% load static cms %}
|
|
|
|
{% block title %}{{block.super}} - {{page.title}}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% for section in sections %}
|
|
<div id="{{section.title|slugify}}"></div>
|
|
{% include_section section %}
|
|
{% endfor %}
|
|
|
|
{% if perms.cms_page.change %}
|
|
<div class="edit">
|
|
<a href="{% if page.slug %}{% url 'cms:updatepage' page.slug %}{% else %}{% url 'cms:updatepage' %}{% endif %}"><img src="{% static 'cms/edit.png' %}"></a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|