From e8ad84276f28ae681dda3a0c04e33d9c2a0217e1 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Mon, 19 Sep 2011 18:14:32 -0500 Subject: [PATCH] adding a /services/admin page This page requires superuser access, and only provides buttons which trigger hardcoded tasks to be run, such as indexing all the Packages again. --- apps/base/templates/admin.html | 30 ++++++++++++++++++++++++++++++ apps/base/urls.py | 1 + apps/base/views.py | 26 +++++++++++++++++++++++--- media/jetpack/css/UI.Forms.css | 3 ++- 4 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 apps/base/templates/admin.html diff --git a/apps/base/templates/admin.html b/apps/base/templates/admin.html new file mode 100644 index 00000000..d937588c --- /dev/null +++ b/apps/base/templates/admin.html @@ -0,0 +1,30 @@ +{% extends 'base.html' %} + +{% block title %}Mozilla FlightDeck Admin Area{% endblock title %} + +{% block head_prejs %} + +{% endblock %} + +{% block app_content %} +
+

Search

+{% if message %} +

{{message}}

+{% endif %} + {% csrf_token %} +