From 8e45a66208e1271a36be077bc60b92f77631f3ef Mon Sep 17 00:00:00 2001 From: Deimos Date: Tue, 30 Jul 2019 18:16:10 -0600 Subject: [PATCH] Show group-specific search in header --- tildes/tildes/templates/search.jinja2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tildes/tildes/templates/search.jinja2 b/tildes/tildes/templates/search.jinja2 index 5f28678..988cd36 100644 --- a/tildes/tildes/templates/search.jinja2 +++ b/tildes/tildes/templates/search.jinja2 @@ -8,7 +8,16 @@ {% block title %}Search results for "{{ search }}"{% endblock %} -{% block header_context_link %}Search: "{{ search }}"{% endblock %} +{% block header_context_link %} + + {% if group %} + Search in ~{{ group.path }}: + {% else %} + Search: + {% endif %} + "{{ search }}" + +{% endblock %} {% block filter_info %} {% if group %}