diff options
-rw-r--r-- | hyperkitty/lib/mailman.py | 2 | ||||
-rw-r--r-- | hyperkitty/templates/errors/nosearch.html (renamed from hyperkitty/templates/error-nosearch.html) | 0 | ||||
-rw-r--r-- | hyperkitty/templates/errors/private.html (renamed from hyperkitty/templates/error-private.html) | 0 | ||||
-rw-r--r-- | hyperkitty/views/search.py | 4 |
4 files changed, 3 insertions, 3 deletions
diff --git a/hyperkitty/lib/mailman.py b/hyperkitty/lib/mailman.py index 090902b..4283e70 100644 --- a/hyperkitty/lib/mailman.py +++ b/hyperkitty/lib/mailman.py @@ -108,7 +108,7 @@ def check_mlist_private(func): raise Http404("No archived mailing-list by that name.") #return HttpResponse(request.session.get("subscribed", "NO KEY"), content_type="text/plain") if not is_mlist_authorized(request, mlist): - return render(request, "error-private.html", { + return render(request, "errors/private.html", { "mlist": mlist, }, status=403) return func(request, *args, **kwargs) diff --git a/hyperkitty/templates/error-nosearch.html b/hyperkitty/templates/errors/nosearch.html index e27e153..e27e153 100644 --- a/hyperkitty/templates/error-nosearch.html +++ b/hyperkitty/templates/errors/nosearch.html diff --git a/hyperkitty/templates/error-private.html b/hyperkitty/templates/errors/private.html index 07cb5cf..07cb5cf 100644 --- a/hyperkitty/templates/error-private.html +++ b/hyperkitty/templates/errors/private.html diff --git a/hyperkitty/views/search.py b/hyperkitty/views/search.py index 55fc95a..4966f03 100644 --- a/hyperkitty/views/search.py +++ b/hyperkitty/views/search.py @@ -87,12 +87,12 @@ def search(request, page=1): if mlist is None: raise Http404("No archived mailing-list by that name.") if not is_mlist_authorized(request, mlist): - return render(request, "error-private.html", { + return render(request, "errors/private.html", { "mlist": mlist, }, status=403) if not store.search_index: - return render(request, "error-nosearch.html", {"mlist": mlist}) + return render(request, "errors/nosearch.html", {"mlist": mlist}) if not query: return render(request, "search_results.html", { |