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