Немного оптимизировал

This commit is contained in:
Федор Подлеснов 2015-12-02 11:06:54 +03:00
parent f02a0bac42
commit a49f10601b
3 changed files with 19 additions and 27 deletions

View file

@ -2,8 +2,9 @@
<h1>{{ pagename|title }}</h1>
<ul>
{% for author in authors %}
<li{% if loop.first %} class="first"{% endif %}>
{{ author }}
<li {% if loop.first %}class="first"{% endif %}{% if loop.last %}class="last"{% endif %}>
<div class="name">{{ author.name }}</div>
<div class="age">{{ author.age }}</div>
</li>
{% endfor %}
</ul>