rename .html templates to .jinja2 for more consistency
This commit is contained in:
parent
7f050afb8b
commit
2887d94a8c
36 changed files with 34 additions and 33 deletions
65
templates/circles/list.jinja2
Normal file
65
templates/circles/list.jinja2
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Circles – {{ app_name }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Showing: <strong>{{ cat }}</strong></p>
|
||||
|
||||
<fieldset>
|
||||
<legend>Show by:</legend>
|
||||
<p><strong>Type</strong>:
|
||||
{% set typ_list = [
|
||||
'INTJ', 'INTP', 'INFJ', 'INFP', 'ENTJ', 'ENTP',
|
||||
'ENFJ', 'ENFP', 'ISTJ', 'ISTP', 'ISFJ', 'ISFP',
|
||||
'ESTJ', 'ESTP', 'ESFJ', 'ESFP'] %}
|
||||
{% for t in typ_list %}
|
||||
<a href="/circles/{{ t.lower() }}">{{ t }}</a> ·
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p><strong>Status</strong>:
|
||||
{% set typ_list = ['Green', 'Yellow', 'Orange', 'Red'] %}
|
||||
{% for t in typ_list %}
|
||||
<a href="/circles/{{ t.lower() }}">{{ t }}</a> ·
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p><strong>Area</strong>:
|
||||
{% for t in range(1, 13) %}
|
||||
<a href="/circles/area-{{ t }}">{{ t }}</a> ·
|
||||
{% endfor %}
|
||||
<a href="/circles/no-area">Unassigned</a>
|
||||
</p>
|
||||
<p><a href="/circles/stats">Stats</a> · <a href="/circles/new">Add new</a>.</p>
|
||||
</div>
|
||||
|
||||
{% if count > people.count() %}
|
||||
<p>Showing <strong>{{ people.count() }}</strong> people of <strong>{{ count }}</strong> total.</p>
|
||||
{% if count > pageno * 50 %}
|
||||
<p><a href="?page={{ pageno + 1 }}" rel="nofollow">Next page</a>{% if pageno > 1 %} · <a href="?page={{ pageno - 1 }}" rel="nofollow">Prev page</a>{% endif %}</p>
|
||||
{% elif pageno > 1 %}
|
||||
<a href="?page={{ pageno - 1 }}" rel="nofollow">Prev page</a></p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p><strong>{{ count }}</strong> people.</p>
|
||||
{% endif %}
|
||||
|
||||
<ul class="circles-list">
|
||||
{% for p in people %}
|
||||
<li class="circles-{{ 'red' if p.status == -1 else 'green' if p.status == 2 else 'yellow' if p.status == 1 else 'orange' }}">
|
||||
<span class="circles-li-code">{{ p.code }}</span>
|
||||
<span>{{ p.display_name }} – {{ p.type }} – {% if p.area %}Area {{ p.area }}{% else %}No area{% endif %} (<a href="/circles/edit/{{ p.code }}">edit</a>)</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% if count > people.count() %}
|
||||
<p>Showing <strong>{{ people.count() }}</strong> people of <strong>{{ count }}</strong> total.</p>
|
||||
{% if count > pageno * 50 %}
|
||||
<p><a href="?page={{ pageno + 1 }}" rel="nofollow">Next page</a>{% if pageno > 1 %} · <a href="?page={{ pageno - 1 }}" rel="nofollow">Prev page</a>{% endif %}</p>
|
||||
{% elif pageno > 1 %}
|
||||
<a href="?page={{ pageno - 1 }}" rel="nofollow">Prev page</a></p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p><strong>{{ count }}</strong> people.</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue