summaryrefslogtreecommitdiff
path: root/templates/post/name.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-16 15:01:37 +0200
committerczaks <marcin@6irc.net>2014-04-16 15:01:37 +0200
commit59874b83769259e3a1b0730405e5f65e46243666 (patch)
tree6610f5126a4f71affd0855996a74f2917ffcbd6a /templates/post/name.html
parentc4317cdbf7b24a9745f2126646162d527bd50c7b (diff)
modularize post templates a little more
Diffstat (limited to 'templates/post/name.html')
-rw-r--r--templates/post/name.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/post/name.html b/templates/post/name.html
new file mode 100644
index 00000000..009b234d
--- /dev/null
+++ b/templates/post/name.html
@@ -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 %}