summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-04 21:13:33 -0700
committerAndrew Godwin2022-12-04 21:13:33 -0700
commit93ccb5dd32f4e3942d08814e5a86fb30c90c9ff6 (patch)
tree001b4b4ab9270b007aa90bb4218836b1ef072d84 /templates
parent28ac03c42fb82db5f1dad1f711cffdde0a0cce6c (diff)
downloadtakahe-93ccb5dd32f4e3942d08814e5a86fb30c90c9ff6.tar.gz
takahe-93ccb5dd32f4e3942d08814e5a86fb30c90c9ff6.tar.bz2
takahe-93ccb5dd32f4e3942d08814e5a86fb30c90c9ff6.zip
Make search work with URLs
Diffstat (limited to 'templates')
-rw-r--r--templates/activities/search.html23
1 files changed, 18 insertions, 5 deletions
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 %}
+ <h2>Posts</h2>
+ <section class="icon-menu">
+ {% for post in results.posts %}
+ {% include "activities/_post.html" %}
+ {% endfor %}
+ </section>
+ {% endif %}
{% if results.hashtags %}
<h2>Hashtags</h2>
<section class="icon-menu">
@@ -26,10 +34,15 @@
{% endfor %}
</section>
{% endif %}
- {% if results and not results.identities and not results.hashtags %}
- <h2>No results (yet)</h2>
- <p>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!</p>
+ {% 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>
{% endif %}
{% endblock %}