From 93ccb5dd32f4e3942d08814e5a86fb30c90c9ff6 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 4 Dec 2022 21:13:33 -0700 Subject: Make search work with URLs --- templates/activities/search.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'templates/activities') diff --git a/templates/activities/search.html b/templates/activities/search.html index 84b2cc7..58964b2 100644 --- a/templates/activities/search.html +++ b/templates/activities/search.html @@ -18,6 +18,14 @@ {% include "activities/_identity.html" %} {% endfor %} {% endif %} + {% if results.posts %} +

Posts

+
+ {% for post in results.posts %} + {% include "activities/_post.html" %} + {% endfor %} +
+ {% endif %} {% if results.hashtags %}

Hashtags

@@ -26,10 +34,15 @@ {% endfor %}
{% endif %} - {% if results and not results.identities and not results.hashtags %} -

No results (yet)

-

No results found — not yet, at least. The search swamphens are still - rooting around behind the scenes and may yet turn something up. If you try your search - again after a moment, you might get lucky!

+ {% if results and not results.identities and not results.hashtags and not results.posts %} +

No results

+

+ We could not find anything matching your query. +

+

+ 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. +

{% endif %} {% endblock %} -- cgit v1.2.3