camp/content/templates/index.html

52 lines
1.5 KiB
HTML
Raw Normal View History

2017-06-10 09:59:00 +00:00
{% extends 'base.html' %}
{% block content %}
2017-08-03 17:44:00 +00:00
{% for content in homepage %}
2017-06-10 09:59:00 +00:00
<div class="large-8 medium-8 columns special-column">
<div class="index-text">
2017-08-03 17:44:00 +00:00
<h4 class="big-title">{{content.title}} </a></h4>
<p> {{content.header}} </p>
<p> {{content.body}} </p>
2017-06-10 09:59:00 +00:00
</div>
{% endfor %}
</div>
<div class="large-4 medium-4 columns">
<h4 class="sidebar-h4"> Upcoming Events </h4>
<div class="row">
2017-07-03 08:14:07 +00:00
{% for content in latest_content_list %}
{% if content.type_id == 1 %}
<div class="row right-items">
<div class= "small-12 columns">
2017-08-03 17:44:00 +00:00
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{content.datestart}} </b>
{{ content.title }} <br />
{{ content.formatted_header|safe }} </font>
2017-07-03 08:14:07 +00:00
</h6>
</div>
</div>
{% endif %}
{% if content.type_id == 0 %}
2017-06-10 09:59:00 +00:00
<div class="row right-items">
<div class="small-6 columns">
<img src="http://camputer.org/images/{{ content.image }}">
</div>
<div class="small-6 columns">
2017-07-03 08:14:07 +00:00
<a href="/{{content.type}}/{{ content.shortname }}/" class="sidebar-title">{{ content.title }}</a>
2017-08-03 17:44:00 +00:00
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{ content.datestart }} {% if content.dateend %} - {{content.dateend}} {% endif %} </b></font> <br/>
{{content.place}} </h6>
<p> {{content.header|striptags|truncatechars:100}} </p>
2017-06-10 09:59:00 +00:00
</div>
</div>
2017-07-03 08:14:07 +00:00
{% endif %}
2017-06-10 09:59:00 +00:00
{% endfor %}
2017-07-03 08:14:07 +00:00
2017-06-10 09:59:00 +00:00
</div>
</div>
{% endblock %}