diff --git a/templates/post/ip.html b/templates/post/ip.html new file mode 100644 index 00000000..11581ff9 --- /dev/null +++ b/templates/post/ip.html @@ -0,0 +1,3 @@ +{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %} + [{{ post.ip }}] +{% endif %} 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 #} + +{% endif %} + {{ post.name|bidi_cleanup }} + {% if post.trip|length > 0 %} + {{ post.trip }} + {% endif %} +{% if post.email|length > 0 %} + {# end email #} + +{% endif %} +{% if capcode %} + {{ capcode.cap }} +{% endif %} diff --git a/templates/post/poster_id.html b/templates/post/poster_id.html new file mode 100644 index 00000000..3f168003 --- /dev/null +++ b/templates/post/poster_id.html @@ -0,0 +1,3 @@ +{% if config.poster_ids %} + ID: {{ post.ip|poster_id(post.id) }} +{% endif %} diff --git a/templates/post/subject.html b/templates/post/subject.html new file mode 100644 index 00000000..0d80d95e --- /dev/null +++ b/templates/post/subject.html @@ -0,0 +1,5 @@ +{% if post.subject|length > 0 %} + {# show subject #} + {{ post.subject|bidi_cleanup }} +{% endif %} + diff --git a/templates/post/time.html b/templates/post/time.html new file mode 100644 index 00000000..e6273f94 --- /dev/null +++ b/templates/post/time.html @@ -0,0 +1 @@ + diff --git a/templates/post_reply.html b/templates/post_reply.html index 530d2626..90ac5065 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -5,35 +5,14 @@
- {% if config.poster_ids %}
- ID: {{ post.ip|poster_id(post.thread) }}
- {% endif %}
+ {% include 'post/poster_id.html' %}
+
No.
{{ post.id }}
diff --git a/templates/post_thread.html b/templates/post_thread.html
index acacd602..f74427e4 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -36,35 +36,13 @@
- {% if config.poster_ids %}
- ID: {{ post.ip|poster_id(post.id) }}
- {% endif %}
+ {% include 'post/poster_id.html' %}
No.
{{ post.id }}