camp/content/templates/content.html

40 lines
1.4 KiB
HTML
Raw Normal View History

2017-12-23 12:06:13 +01:00
{% extends 'base.html' %}
2023-08-09 09:45:13 +00:00
{% block head %}
{% include "content-header.html" %}
{% endblock %}
2017-12-23 12:06:13 +01:00
{% block content %}
{% include "edit.html" %}
<div class="large-8 medium-8 columns special-column">
2025-02-01 12:45:12 +05:30
{% if content.video_url %}
2025-02-01 16:00:42 +05:30
{{ content.video_gif }}
2025-02-01 12:46:04 +05:30
{% elif content.image_url %}
2017-12-23 12:06:13 +01:00
<img src="{{ content.image_url }}">
{% endif %}
<div class="index-text">
<h4><a href="{{ content.get_absolute_url }}" class="big-title">{{content.title}}</a></h4>
2017-12-24 02:34:44 +05:30
{% if content.type.name == 'events' %}
<h6 class="content-date">
<font color="#ef4e5c">
<b> {{ content.datestart }} {% if content.dateend %} - {{content.dateend}} {% endif %} </b>
</font>
{% if content.place %}<br/>{{content.place}}{% endif%}
</h6>
{% endif %}
2025-01-30 17:28:29 +05:30
<p>
{{content.formatted_header}}
</p>
<p>
{{content.formatted_body}}
</p>
2017-12-23 12:06:13 +01:00
{% include "opt.html" %}
{% include "links.html" %}
{% include "gallery.html" with gallery=content.gallery %}
{% for gallery in content.galleries.all %}
{% include "gallery.html" with gallery=gallery %}
{% endfor %}
2017-12-23 12:06:13 +01:00
</div>
</div>
{% include "latest_content.html" %}
{% endblock %}