mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
Add search box to top of search results page just because.
This commit is contained in:
@@ -4,22 +4,39 @@
|
|||||||
{% load sanitizer %}
|
{% load sanitizer %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Brutaldon - search results
|
Brutaldon - search results
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
mastodon.search("<query>")
|
mastodon.search("<query>")
|
||||||
# Returns the following dictionary
|
# Returns the following dictionary
|
||||||
{
|
{
|
||||||
'accounts': # List of account dicts resulting from the query
|
'accounts': # List of account dicts resulting from the query
|
||||||
'hashtags': # List of hashtag dicts resulting from the query
|
'hashtags': # List of hashtag dicts resulting from the query
|
||||||
'statuses': # List of toot 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>
|
<h1 class="title">Search results</h1>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2 class="subtitle">Users</h2>
|
<h2 class="subtitle">Users</h2>
|
||||||
@@ -67,4 +84,4 @@ mastodon.search("<query>")
|
|||||||
{% include "main/toot_partial.html" with toot=toot reblog=False %}
|
{% include "main/toot_partial.html" with toot=toot reblog=False %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user