From 2216f546e72c74cc4b0ea4eb32e8f4ec0f525298 Mon Sep 17 00:00:00 2001 From: Will Larson Date: Sun, 6 Jul 2008 14:30:14 +0900 Subject: [PATCH] Created admin section in the LFE. Moved blogroll management to admin section. --- editor/urls.py | 3 ++- templates/lifeflow/editor/admin_base.html | 11 +++++++++++ templates/lifeflow/editor/base.html | 2 +- templates/lifeflow/editor/blogroll.html | 4 ++-- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 templates/lifeflow/editor/admin_base.html diff --git a/editor/urls.py b/editor/urls.py index e0b0a7a..6b002b2 100644 --- a/editor/urls.py +++ b/editor/urls.py @@ -4,9 +4,10 @@ urlpatterns = patterns('lifeflow.editor.views', (r'^$', 'overview'), (r'^comments/$', 'comments'), - (r'^blogroll/$', 'blogroll'), (r'^files/$', 'files'), + (r'^admin/$', 'blogroll'), + (r'^authors/$', 'authors'), (r'^authors/create/$', 'create_author'), (r'^authors/(?P\d+)/$', 'author_edit'), diff --git a/templates/lifeflow/editor/admin_base.html b/templates/lifeflow/editor/admin_base.html new file mode 100644 index 0000000..9ea9b42 --- /dev/null +++ b/templates/lifeflow/editor/admin_base.html @@ -0,0 +1,11 @@ +{% extends "lifeflow/editor/base.html" %} + +{% block body %} + +{% block body2 %}{% endblock %} + +{% endblock %} \ No newline at end of file diff --git a/templates/lifeflow/editor/base.html b/templates/lifeflow/editor/base.html index 757330a..f0291cc 100644 --- a/templates/lifeflow/editor/base.html +++ b/templates/lifeflow/editor/base.html @@ -25,7 +25,7 @@ projects files authors - blogroll + admin {% endif %}
diff --git a/templates/lifeflow/editor/blogroll.html b/templates/lifeflow/editor/blogroll.html index 4fd3d0d..c8fb8b5 100644 --- a/templates/lifeflow/editor/blogroll.html +++ b/templates/lifeflow/editor/blogroll.html @@ -1,6 +1,6 @@ -{% extends "lifeflow/editor/base.html" %} +{% extends "lifeflow/editor/admin_base.html" %} -{% block body %} +{% block body2 %}