From d16eb21f966f461fa86f4e4aae8ca74216db26d4 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 27 Mar 2009 10:56:41 +0100 Subject: [PATCH] Add code to support disabling new influences. --- templates/base/offline.html | 6 ++++++ urls.py | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 templates/base/offline.html diff --git a/templates/base/offline.html b/templates/base/offline.html new file mode 100644 index 0000000..7f51b4e --- /dev/null +++ b/templates/base/offline.html @@ -0,0 +1,6 @@ +{% extends "base/base.html" %} +{% load i18n %} + +{% block content %} +Xerxes is offline, het is tijdelijk niet mogelijk om invloeden in te dienen. +{% endblock %} diff --git a/urls.py b/urls.py index 0ff28c1..bbc5468 100644 --- a/urls.py +++ b/urls.py @@ -3,6 +3,7 @@ from django.conf.urls.defaults import * from django.contrib import admin from xerxes.influences.models import Character from xerxes.influences.models import Influence +from django.views.generic.simple import direct_to_template import os # Automatically import admin.py from all INSTALLED_APPS @@ -18,6 +19,8 @@ urlpatterns = patterns('', url(r'^influences/influence/(?P\d+)/$', 'xerxes.influences.views.influence_detail', name='influences_influence_detail'), url(r'^influences/influence/(?P\d+)/comment/$', 'xerxes.influences.views.influence_comment', name='influences_influence_comment'), url(r'^influences/influence/(?P\d+)/comment/(?P\d+)/$', 'xerxes.influences.views.influence_comment', name='influences_influence_comment_parent'), + #url(r'^influences/influence/add/(\d+)$', 'django.views.generic.simple.direct_to_template', {'template': 'base/offline.html'}, name='influences_add_influence_for_character'), + #url(r'^influences/influence/add/$', 'django.views.generic.simple.direct_to_template', {'template': 'base/offline.html'}, name='influences_add_influence'), url(r'^influences/influence/add/(\d+)/$', 'xerxes.influences.views.add_influence', name='influences_add_influence_for_character'), url(r'^influences/influence/add/$', 'xerxes.influences.views.add_influence', name='influences_add_influence'), -- 2.30.2