forked from leftypol/leftypol
modularize post templates a little more
This commit is contained in:
parent
c4317cdbf7
commit
59874b8376
7 changed files with 39 additions and 54 deletions
16
templates/post/name.html
Normal file
16
templates/post/name.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% set capcode = post.capcode|capcode %}
|
||||
{% if post.email|length > 0 %}
|
||||
{# start email #}
|
||||
<a class="email" href="mailto:{{ post.email }}">
|
||||
{% endif %}
|
||||
<span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name|bidi_cleanup }}</span>
|
||||
{% if post.trip|length > 0 %}
|
||||
<span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span>
|
||||
{% endif %}
|
||||
{% if post.email|length > 0 %}
|
||||
{# end email #}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if capcode %}
|
||||
{{ capcode.cap }}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue