diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-11-14 18:21:20 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-11-20 19:15:40 +0100 |
commit | 89406e71d9541396a48370d48e40f5e6c1e4a357 (patch) | |
tree | 8d86988020611f052909e4d3de0d8b66e7fb1b87 | |
parent | 9e5a71481101c611e5ebfe08cb7dd3b3dbc6601b (diff) | |
download | hyperkitty-89406e71d9541396a48370d48e40f5e6c1e4a357.tar.gz hyperkitty-89406e71d9541396a48370d48e40f5e6c1e4a357.tar.xz hyperkitty-89406e71d9541396a48370d48e40f5e6c1e4a357.zip |
Move error templates in their own directory
-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", { |