summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-05 10:33:31 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-05 10:33:31 +1100
commitc5a961a6a52af8a0d6c0085668fe71d9d9de3a9c (patch)
tree2441152c673c20e1d89d747650724bcb6023c648 /templates
parentb3dba69b5017ef10d2b305c26041a78466e64667 (diff)
custom capcode fix
Diffstat (limited to 'templates')
-rw-r--r--templates/post_reply.html10
-rw-r--r--templates/post_thread.html10
2 files changed, 10 insertions, 10 deletions
diff --git a/templates/post_reply.html b/templates/post_reply.html
index d14505bd..e01567a2 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -14,17 +14,17 @@
{# start email #}
<a class="email" href="mailto:{{ post.email }}">
{% endif %}
- <span class="name">{{ post.name }}</span>
+ {% set capcode = post.capcode|capcode %}
+ <span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name }}</span>
{% if post.trip|length > 0 %}
- <span class="trip">{{ post.trip }}</span>
+ <span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span>
{% endif %}
{% if post.email|length > 0 %}
{# end email #}
</a>
{% endif %}
- {% if post.capcode|length > 0 %}
- {# show capcode #}
- {{ post.capcode|capcode }}
+ {% if capcode %}
+ {{ capcode.cap }}
{% endif %}
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
diff --git a/templates/post_thread.html b/templates/post_thread.html
index c236fdcc..ad65e6fc 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -58,17 +58,17 @@
{# start email #}
<a class="email" href="mailto:{{ post.email }}">
{% endif %}
- <span class="name">{{ post.name }}</span>
+ {% set capcode = post.capcode|capcode %}
+ <span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name }}</span>
{% if post.trip|length > 0 %}
- <span class="trip">{{ post.trip }}</span>
+ <span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span>
{% endif %}
{% if post.email|length > 0 %}
{# end email #}
</a>
{% endif %}
- {% if post.capcode|length > 0 %}
- {# show capcode #}
- {{ post.capcode|capcode }}
+ {% if capcode %}
+ {{ capcode.cap }}
{% endif %}
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]