From ff697ff7925066dcad27f383e0cd1a76d2342b80 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 23:50:02 +0200 Subject: [PATCH] feat(templates): Add new MDL-themed search result view --- static/styles.css | 6 +++ templates/search.html | 106 +++++++++++++++++++++++++----------------- 2 files changed, 69 insertions(+), 43 deletions(-) diff --git a/static/styles.css b/static/styles.css index 66b3200fd..b2a16b7a6 100644 --- a/static/styles.css +++ b/static/styles.css @@ -131,3 +131,9 @@ html, body { .converse .reply-box { padding-top: 10px; } +.search-result { + margin: 8px; +} +.search-result .mdl-button { + margin: 3px; +} diff --git a/templates/search.html b/templates/search.html index 35193fb61..0ff49e508 100644 --- a/templates/search.html +++ b/templates/search.html @@ -1,47 +1,67 @@ - - - - - - - Converse Index - - -
- -
-
-
-
-

Search results for '{{ query }}':

+ + + + Converse: Search results + + + + + + + + + + + +
+
+
+ Converse +
+
+
+ + + +
+
+   + + + +
+
+
+
+
+

Search results for '{{ query }}':

+
+ {% for result in results %} +
+
+

Posted in '{{ result.title }}' by {{ result.author }}:

+

{{ result.headline | safe }}

+
+
+
+ + arrow_forward + +
+
+ {% endfor %} +
+
+
-
- -
- + +