mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-12-04 14:46:24 -05:00
Add search box to top of search results page just because.
This commit is contained in:
parent
cffa271394
commit
315d875f9b
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user