Add search box to top of search results page just because.

This commit is contained in:
Jason McBrayer 2018-06-10 12:44:56 -04:00
parent cffa271394
commit 315d875f9b
1 changed files with 52 additions and 35 deletions

View File

@ -4,22 +4,39 @@
{% load sanitizer %}
{% block title %}
Brutaldon - search results
Brutaldon - search results
{% endblock %}
{% comment %}
mastodon.search("<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
}
# 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 %}
<section>
<form method="get" action="{% url "search_results" %}">
<div class="field has-addons">
<label class="label">{{ form.instance.label }}</label>
<div class="control has-icons-left">
<input type="search" name="q" id="q" class="input">
<span class="icon is-small is-left">
<i class="fa fa-search"></i>
</span>
</div>
<input type="submit" value="Search" class="button is-primary" >
</div>
</form>
<br>
</section>
{% block content %}
<h1 class="title">Search results</h1>
<div class="container">
<h2 class="subtitle">Users</h2>
@ -67,4 +84,4 @@ mastodon.search("<query>")
{% include "main/toot_partial.html" with toot=toot reblog=False %}
{% endfor %}
</div>
{% endblock %}
{% endblock %}