From fb9ea437e9fd47d2b4cb432ad6fc576d4a08614f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 23:17:34 +0200 Subject: feat(templates): Add new thread view with MDL design --- templates/thread.html | 161 +++++++++++++++++++++++++++++++------------------- 1 file changed, 100 insertions(+), 61 deletions(-) (limited to 'templates/thread.html') diff --git a/templates/thread.html b/templates/thread.html index 957a39d8cb34..c3902a456f9b 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -1,71 +1,110 @@ - - - - - - - - - Converse: {{ title | safe }} - - - - - -
- -
+ + + + Converse: {{ title | safe }} -
-
-
-

{{ title | safe }}

-
+ + + - {% for post in posts -%} -
-
- - {{ post.author_name }} -
+ + + + + + + + + + + +
+
+ +
+
+ {% for post in posts -%} +
+ {# card to display avatars on desktop #} +
+
+ +
+ {{ post.author_name }} +
+
+ {# card for main post content #} +
+ {# card section for displaying user & post information on mobile #} +
+ +  {{ post.author_name }} posted on + {{ post.posted }} +
+ {# card section to display post date on desktop #} + + {# card section for actual post content #} +
{{ post.body | safe }}
+ {# card section for post actions #} +
+
-
{{ post.body | safe }}
+ {#%- TODO if post.editable %#} + + {#% endif -%#} -
- - {{ post.posted }} - + {% if post.editable %} + + edit + Edit post + + {% endif %} + +
+
+
+ {% endfor %} -
- {%- if post.editable %} - Edit - {% endif -%} - Quote -
-
-
- {%- endfor %} + {# section for writing a response on the same page #} +
+
+
+ -
- - - -
- -
- -
-
- +
+
+ + +
+ +
+ +
+
+ +
-
- - + + -- cgit 1.4.1