From 315d875f9bbb40002293af64c26f23bfc1d076c5 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Sun, 10 Jun 2018 12:44:56 -0400 Subject: [PATCH] Add search box to top of search results page just because. --- brutaldon/templates/main/search_results.html | 87 ++++++++++++-------- 1 file changed, 52 insertions(+), 35 deletions(-) diff --git a/brutaldon/templates/main/search_results.html b/brutaldon/templates/main/search_results.html index a249a5e..b63b5c2 100644 --- a/brutaldon/templates/main/search_results.html +++ b/brutaldon/templates/main/search_results.html @@ -4,52 +4,69 @@ {% load sanitizer %} {% block title %} - Brutaldon - search results +Brutaldon - search results {% endblock %} {% comment %} mastodon.search("") -# Returns the following dictionary -{ -'accounts': # List of account dicts resulting from the query -'hashtags': # List of hashtag dicts resulting from the query -'statuses': # List of toot dicts resulting from the query -} + # Returns the following dictionary + { + 'accounts': # List of account dicts resulting from the query + 'hashtags': # List of hashtag dicts resulting from the query + 'statuses': # List of toot dicts resulting from the query + } -{% endcomment %} + {% endcomment %} + {% block content %} + +
+
+
+ +
+ + + + +
+ +
+ +
+
+
-{% block content %}

Search results

Users

{% for user in results.accounts %} - +
+ {% endfor %} @@ -58,13 +75,13 @@ mastodon.search("")

Tags

Toots

{% for toot in results.statuses %} - {% include "main/toot_partial.html" with toot=toot reblog=False %} + {% include "main/toot_partial.html" with toot=toot reblog=False %} {% endfor %} -{% endblock %} + {% endblock %}