24 lines
749 B
Django/Jinja
24 lines
749 B
Django/Jinja
{% extends "base.jinja" %}
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="box"><p class="title is-4">{{ data['title'] }}</p></div>
|
|
{% set comma = joiner(",") %}
|
|
{% for section in data['sections'] %}
|
|
{{ comma() }} <a href="#">{{ section['title'] }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
{#- each statistics section -#}
|
|
{% for section in data['sections'] %}
|
|
<section class="section">
|
|
<div class="container">
|
|
<p id="" class="title is-4">{{ section['title'] }}</p>
|
|
{% if 'chart' in section %}<img src="{{ base['url_to'](section['chart']) }}">{% endif %}
|
|
<ul>
|
|
{% for item in section['items'] -%}
|
|
<li>{{ item }}</li>
|
|
{% endfor -%}
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
{% endfor %}
|
|
{% endblock %} |