camp/content/templates/texts.html

59 lines
1.7 KiB
HTML
Raw Normal View History

2017-08-03 17:44:00 +00:00
{% extends 'base.html' %}
{% block content %}
2017-12-22 20:08:54 +00:00
{% include "edit.html" with content=texts %}
2017-08-03 17:44:00 +00:00
<div class="large-8 medium-8 columns special-column">
2017-12-18 12:54:04 +00:00
{% if texts.image %}
<img src="{{ texts.image_url }}">
{% endif %}
2017-08-03 17:44:00 +00:00
<div class="index-text">
2017-12-18 12:54:04 +00:00
<h4><a href="{{ texts.get_absolute_url }}/" class="big-title">{{texts.title}} </a></h4>
2017-08-03 17:44:00 +00:00
<p> {{texts.formatted_header|safe}} </p>
<p> {{texts.formatted_body|safe}} </p>
2017-12-18 13:44:11 +00:00
{% include "opt.html" with content=texts %}
2017-08-03 17:44:00 +00:00
</div>
</div>
{% if latest_content_list %}
<div class="large-4 medium-4 columns">
{% if texts.children.all %}
<h4 class="sidebar-h4"> Related </h4>
{% for child in texts.children.all %}
<div class="row related-row">
2017-12-18 12:54:04 +00:00
{% if child.image %}
2017-08-03 17:44:00 +00:00
<div class="small-6 columns">
2017-12-18 14:12:43 +00:00
<a href="{{ child.get_absolute_url }}"> <img src="{{ child.image_url }}"> </a>
2017-08-03 17:44:00 +00:00
</div>
2017-12-18 12:54:04 +00:00
{% endif %}
2017-08-03 17:44:00 +00:00
<div class="small-6 columns">
2017-12-18 12:54:04 +00:00
<h6><a href="{{ child.get_absolute_url }}" class="sidebar-title"> {{child}} </a> </h6>
2017-08-03 17:44:00 +00:00
</div>
</div>
{% endfor %}
{% endif %}
<h4 class="sidebar-h4"> Texts </h4>
<div class="row">
{% for texts in latest_content_list %}
<div class="row right-items">
2017-12-18 13:44:11 +00:00
{% if texts.image %}
2017-08-03 17:44:00 +00:00
<div class="small-6 columns">
2017-12-18 14:12:43 +00:00
<a href="{{ texts.get_absolute_url }}"> <img src="{{ texts.image_url }}"></a>
2017-08-03 17:44:00 +00:00
</div>
2017-12-18 12:54:04 +00:00
{% endif %}
2017-08-03 17:44:00 +00:00
<div class="small-6 columns">
2017-12-18 12:54:04 +00:00
<a href="{{ texts.get_absolute_url }}" class="sidebar-title">{{ texts.title }}</a>
2017-08-03 17:44:00 +00:00
<p> {{texts.header|striptags|truncatechars:100}} </p>
</div>
</div>
{% endfor %}
{% else %}
<p>No texts.</p>
{% endif %}
</div>
</div>
2017-12-18 12:54:04 +00:00
{% endblock %}