2022-11-18 01:52:00 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Search{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<form action="." method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
<fieldset>
|
|
|
|
{% include "forms/_field.html" with field=form.query %}
|
|
|
|
</fieldset>
|
|
|
|
<div class="buttons">
|
|
|
|
<button>Search</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% if results.identities %}
|
|
|
|
<h2>People</h2>
|
|
|
|
{% for identity in results.identities %}
|
|
|
|
{% include "activities/_identity.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2022-12-05 04:13:33 +00:00
|
|
|
{% if results.posts %}
|
|
|
|
<h2>Posts</h2>
|
|
|
|
<section class="icon-menu">
|
2023-01-09 16:58:17 +00:00
|
|
|
{% for post in results.posts %}
|
|
|
|
{% include "activities/_post.html" %}
|
|
|
|
{% endfor %}
|
2022-12-05 04:13:33 +00:00
|
|
|
</section>
|
|
|
|
{% endif %}
|
2022-11-29 04:41:36 +00:00
|
|
|
{% if results.hashtags %}
|
|
|
|
<h2>Hashtags</h2>
|
|
|
|
<section class="icon-menu">
|
2023-01-09 16:58:17 +00:00
|
|
|
{% for hashtag in results.hashtags %}
|
|
|
|
{% include "activities/_hashtag.html" with hide_stats=True %}
|
|
|
|
{% endfor %}
|
2022-11-29 04:41:36 +00:00
|
|
|
</section>
|
|
|
|
{% endif %}
|
2022-12-05 04:13:33 +00:00
|
|
|
{% if results and not results.identities and not results.hashtags and not results.posts %}
|
|
|
|
<h2>No results</h2>
|
|
|
|
<p>
|
|
|
|
We could not find anything matching your query.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
If you're trying to find a post or profile on another server,
|
|
|
|
try again in a few moments - if the other end is overloaded, it
|
|
|
|
can take some time to fetch the details.
|
|
|
|
</p>
|
2022-12-04 02:47:09 +00:00
|
|
|
{% endif %}
|
2022-11-18 01:52:00 +00:00
|
|
|
{% endblock %}
|