camp/content/templates/events.html

65 lines
1.9 KiB
HTML
Raw Normal View History

2017-07-03 08:14:07 +00:00
{% extends 'base.html' %}
{% block content %}
<div class="large-8 medium-8 columns special-column">
<img src="http://camputer.org/images/{{events.image}}">
<div class="index-text">
<h4><a href="/{{events.type}}/{{ events.shortname }}/" class="big-title">{{events.title}} </a></h4>
<p> {{events.formatted_header|safe}} </p>
<p> {{events.formatted_body|safe}} </p>
{% if gallery %}
<h6><strong>Gallery: {{gallery.title}}</strong></h6>
<ul class="clearing-thumbs" data-clearing>
{% for photo in gallery.public %}
<li><a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}"></a></li>
{% endfor %}
{% endif %}
</ul>
</div>
</div>
<div class="large-4 medium-4 columns">
2017-08-03 17:44:00 +00:00
{% if events.children.all %}
2017-07-03 08:14:07 +00:00
<h4 class="sidebar-h4"> Related </h4>
{% for child in events.children.all %}
<div class="row related-row">
<div class="small-6 columns">
<img src="http://camputer.org/images/{{ child.image }}">
</div>
<div class="small-6 columns">
<h6><a href="http://127.0.0.1:8000/{{child.type}}/{{child.shortname}}" class="sidebar-title"> {{child}} </a> </h6>
2017-08-03 17:44:00 +00:00
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{ child.datestart }} {% if child.dateend %} - {{child.dateend}} {% endif %} </b></font> <br/>
{{child.place}} </h6>
2017-07-03 08:14:07 +00:00
</div>
</div>
{% endfor %}
2017-08-03 17:44:00 +00:00
{% endif %}
<h4 class="sidebar-h4">Events </h4>
2017-07-03 08:14:07 +00:00
<div class="row">
{% for events in latest_content_list %}
<div class="row right-items">
<div class="small-6 columns">
<img src="http://camputer.org/images/{{ events.image }}">
</div>
<div class="small-6 columns">
<a href="/{{events.type}}/{{ events.shortname }}/" >{{ events.title }}</a>
2017-08-03 17:44:00 +00:00
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{ events.datestart }} </b></font> <br/></h6>
<p> {{events.header|striptags|truncatechars:200}} </p>
2017-07-03 08:14:07 +00:00
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}