add title (configurable) as headline to template

This commit is contained in:
Thor77 2016-07-04 21:16:58 +02:00
parent 60bdcb7aab
commit 402040e2dc
1 changed files with 2 additions and 1 deletions

View File

@ -17,10 +17,11 @@
<b>DEBUG</b>
</div>
{% endif %}
<h1 class="page-header">{{ title }}</h1>
{% for headline, list in objs %}
{% if list|length > 0 %}
{% set headline_id = headline|lower|replace(' ', '_') %}
<h1>{{ headline }}</h2>
<h1>{{ headline }}</h1>
<ul class="list-group" id="{{ headline_id }}">
{% for client, value in list %}
{% set id = headline_id + "." + client.nick %}