kopia lustrzana https://github.com/rtts/django-simplecms
don’t wrap included sections by default
rodzic
b106d740a0
commit
10e90052f7
|
@ -18,9 +18,7 @@
|
||||||
|
|
||||||
{% for section in object.sections.all %}
|
{% for section in object.sections.all %}
|
||||||
<section class="{{section.type}} color{{section.color}}">
|
<section class="{{section.type}} color{{section.color}}">
|
||||||
<div class="wrapper">
|
|
||||||
{% include 'cms/sections/'|add:section.type|add:'.html' %}
|
{% include 'cms/sections/'|add:section.type|add:'.html' %}
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{% load thumbnail embed_video_tags %}
|
{% load thumbnail embed_video_tags %}
|
||||||
|
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
{% if section.image %}
|
{% if section.image %}
|
||||||
<div class="image">
|
<div class="image">
|
||||||
<img alt="" src="{% thumbnail section.image 800x800 %}">
|
<img alt="" src="{% thumbnail section.image 800x800 %}">
|
||||||
|
@ -31,3 +33,5 @@
|
||||||
<a href="{{section.button_link}}">{{section.button_text}}</a>
|
<a href="{{section.button_link}}">{{section.button_text}}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
Ładowanie…
Reference in New Issue