camp/content/templates/index.html

44 lines
1.2 KiB
HTML
Raw Normal View History

2017-06-10 09:59:00 +00:00
{% extends 'base.html' %}
{% block content %}
{% if latest_content_list %}
{% for content in latest_content_list %}
{% if forloop.counter == 3 %}
<div class="large-8 medium-8 columns special-column">
2017-12-05 18:10:17 +00:00
<img src="{{ content.image_url }}">
2017-06-10 09:59:00 +00:00
<div class="index-text">
2017-12-05 18:10:17 +00:00
<h4><a href="{{ content.get_absolute_url }}">{{content.title}}</a></h4>
<p>
{{content.body|striptags|truncatechars:250}} <a href="{{ content.get_absolute_url }}">read more</a>
</p>
2017-06-10 09:59:00 +00:00
</div>
{% endif %}
{% endfor %}
</div>
<div class="large-4 medium-4 columns">
<h4 class="sidebar-h4"> Upcoming Events </h4>
<div class="row">
{% for content in latest_content_list %}
<div class="row right-items">
<div class="small-6 columns">
2017-12-05 18:10:17 +00:00
<img src="{{ content.image_url }}">
2017-06-10 09:59:00 +00:00
</div>
<div class="small-6 columns">
2017-12-05 18:10:17 +00:00
<a href="{{ content.get_absolute_url }}" class="sidebar-title">{{ content.title }}</a>
<h6 class="sidebar-date">{{ content.datestart }}</h6>
{{ conntent.header }}
2017-06-10 09:59:00 +00:00
</div>
</div>
{% endfor %}
{% else %}
<p>No polls are available.</p>
{% endif %}
</div>
</div>
2017-12-05 18:10:17 +00:00
{% endblock %}