From 4c0406cb24527ee4722d4cb4cf4c3c518423dcda Mon Sep 17 00:00:00 2001 From: pluja Date: Wed, 26 Aug 2020 20:49:45 +0200 Subject: [PATCH] Merge RT and no-RT posts into one file --- app/templates/_post_nort.html | 30 ------------------- .../{_post.html => _twitter_post.html} | 14 +++++++-- app/templates/twitter.html | 6 +--- 3 files changed, 13 insertions(+), 37 deletions(-) delete mode 100644 app/templates/_post_nort.html rename app/templates/{_post.html => _twitter_post.html} (63%) diff --git a/app/templates/_post_nort.html b/app/templates/_post_nort.html deleted file mode 100644 index 46a3483..0000000 --- a/app/templates/_post_nort.html +++ /dev/null @@ -1,30 +0,0 @@ -
-
-
-
- -
- - - - -
- -
- {{post.date}} - {% if post.isPinned %} - Pinned - {%endif%} -
-
-

{{post.content}}

-
-
-
- -
-
-
-
\ No newline at end of file diff --git a/app/templates/_post.html b/app/templates/_twitter_post.html similarity index 63% rename from app/templates/_post.html rename to app/templates/_twitter_post.html index 2615683..9b06a8b 100644 --- a/app/templates/_post.html +++ b/app/templates/_twitter_post.html @@ -2,7 +2,12 @@
- + {% if post.isRT %} + + {%else%} + + {%endif%} +
@@ -12,7 +17,12 @@
{{post.date}} - {{post.username}} retwitted + {% if post.isPinned %} + Pinned + {%endif%} + {% if post.isRT %} + {{post.username}} retwitted + {%endif%}

{{post.content}}

diff --git a/app/templates/twitter.html b/app/templates/twitter.html index 7a1a381..36a5c5a 100644 --- a/app/templates/twitter.html +++ b/app/templates/twitter.html @@ -14,11 +14,7 @@
{% if posts %} {% for post in posts %} - {% if post.isRT %} - {% include '_post.html' %} - {% else %} - {% include '_post_nort.html' %} - {% endif %} + {% include '_twitter_post.html' %} {% endfor %} {% else %}
No posts