diff --git a/templates/card.html b/templates/card.html index 3f3a1e9..d310896 100644 --- a/templates/card.html +++ b/templates/card.html @@ -1,73 +1,57 @@ +
+
+ {% if thread.account.avatar is defined %} + avatar of {{ thread.account.display_name }} + {% endif %} +
-
-
- {% if thread.account.avatar is defined %} - avatar of {{ thread.account.display_name }} - {% endif %} -
+
+
+ -
-
- + +
- -
- -
- {{thread.content | safe}} - {% for media in thread.media_attachments %} - {% if media.type == 'image'%} - - {{ media.description or 'media attachment' }} - - {% elif media.type == 'gifv' %} - - {% endif %} - {% endfor %} - {% if thread.media_attachments|length <= 0 and thread.card %} - - - - {% endif %} - -
- {% if is_thread %} - Read full thread - {% endif %} -
+
+ {{thread.content | safe}} + {% for media in thread.media_attachments %} + {% if media.type == 'image'%} + + {{ media.description or 'media attachment' }} + + {% elif media.type == 'gifv' %} + + {% endif %} + {% endfor %} + {% if thread.media_attachments|length <= 0 and thread.card %} + + + {% endif %} +
+ {% if is_thread %} + Read full thread + {% endif %} +
\ No newline at end of file diff --git a/templates/nav.html b/templates/nav.html new file mode 100644 index 0000000..9819269 --- /dev/null +++ b/templates/nav.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/threads.html b/templates/threads.html index 2934fb0..6caa49a 100644 --- a/templates/threads.html +++ b/templates/threads.html @@ -1,283 +1,306 @@ - - - - {{ app.title }} - - {% if threads|length == 1 %} - - - {% else %} - - - {% endif %} - - - - - + + + + {{ app.title }} + + {% if threads|length == 1 %} + + + {% else %} + + + {% endif %} + + + + - - - - - - -
- -

{{ app.title }}

-

{{ app.description }}

-
-
-
- Back -
- {% for thread in threads %} - {% with thread=thread, parent_id=thread.id, is_thread=threads|length > 1 %} - {% include "card.html" %} - {% endwith %} - {% if thread.descendants is defined %} - {% for descendant in thread.descendants %} - {% with thread=descendant, parent_id=thread.id %} - {% include "card.html" %} - {% endwith %} - {% endfor %} - {% endif %} - {% endfor %} - Top -
- - - + } + + + + + +
+ {% include "nav.html" %} +

{{ app.title }}

+

{{ app.description }}

+
+
+
+ Back +
+ {% for thread in threads %} + {% with thread=thread, parent_id=thread.id, is_thread=threads|length > 1 %} + {% include "card.html" %} + {% endwith %} + {% if thread.descendants is defined %} + {% for descendant in thread.descendants %} + {% with thread=descendant, parent_id=thread.id %} + {% include "card.html" %} + {% endwith %} + {% endfor %} + {% endif %} + {% endfor %} + Top +
+ + + + + \ No newline at end of file