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/index.html | 1 - templates/thread.html | 161 +++++++++++++++++++++++++++++++------------------- 2 files changed, 100 insertions(+), 62 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 12369d379238..c104938996e1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,7 +44,6 @@ {% for thread in threads -%}
  • - + + + +
    + {% 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