public-health-ch/publichealth/home/templates/home/article_index_page.html

74 lines
2.2 KiB
HTML
Raw Normal View History

2017-02-21 17:00:16 +00:00
{% extends "base.html" %}
{% load i18n wagtailcore_tags wagtailimages_tags %}
2017-02-21 17:00:16 +00:00
{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %}
{% block content %}
2017-04-26 14:19:14 +00:00
{% if articles|length is 1 %}
<section class="content-page article-index-page">
<div class="container">
{% for page in articles %}
{% include 'home/page_content.html' %}
{% endfor %}
</div>
</section>
{% else %}
2022-07-11 12:42:53 +00:00
{% if page.header_image %}
2022-07-11 13:04:51 +00:00
{% image page.header_image fill-1908x400 as img %}
2022-07-11 12:42:53 +00:00
<div id="carousel-banner" class="slide">
<div class="carousel-inner slick slick-initialized slick-slider" role="listbox">
2017-04-26 14:19:14 +00:00
2022-07-11 12:42:53 +00:00
<div class="slick-list draggable" tabindex="0"><div class="slick-track" style="opacity: 1; width: 1908px;"><div class="item slick-slide slick-active" data-slick-index="0" style="width: 1908px; position: relative; left: 0px; top: 0px; z-index: 900; opacity: 1;">
2022-07-11 13:04:51 +00:00
<img style="background-image:url({{img.url}})">
2022-07-11 12:42:53 +00:00
</div></div></div>
</div>
</div>
{% endif %}
2017-05-03 14:18:14 +00:00
<section id="article-index" class="article-index-page">
2017-04-26 14:19:14 +00:00
<div class="container">
<h2>{{ page.trans_title }}</h2>
<p class="lead">{{ page.trans_intro|richtext }}</p>
{% if page.subscribe_action %}
{% include 'home/subscription_form.html' %}
{% endif %}
2017-04-26 14:19:14 +00:00
<div class="article-body" role="main">
{% for entry in articles %}
<div class="item">
<div class="article-caption">
<h3><a href="{% pageurl entry %}">{{ entry.trans_title }}</a></h3>
2017-05-09 10:26:27 +00:00
{{ entry.trans_intro|richtext }}
2017-04-26 14:19:14 +00:00
</div>
</div>
{% endfor %}
</div>
</div><!-- /container -->
</section>
{% endif %}
2017-04-19 15:47:06 +00:00
{% if subcategories %}
<section id="three" class="article-subcategories" class="wrapper align-center">
<div class="container">
<div class="row">
{% for block in subcategories %}
<article class="col-md-4">
2017-04-19 16:34:55 +00:00
<a href="{% pageurl block %}">
<header>
<h4>{{ block.trans_title }}</h4>
</header>
2017-04-19 16:34:55 +00:00
<div class="image">
{% image block.feed_image fill-300x300 %}
</div>
</a>
2017-04-19 15:47:06 +00:00
</article>
{% endfor %}
</div>
</div><!-- /container -->
2017-03-08 21:54:15 +00:00
</section>
2017-04-19 15:47:06 +00:00
{% endif %}
2017-02-21 17:00:16 +00:00
{% endblock %}