# TODO install the base for now and add all other templates later
templates_DATA = \
- src/templates/base.html
+ src/templates/base.html \
+ src/templates/base-1.html \
+ src/templates/error.html \
+ src/templates/error-404.html \
+ src/templates/error-500.html
templatesdir = $(datadir)/templates
+templates_modules_DATA = \
+ src/templates/modules/menu.html
+
+templates_modulesdir = $(templatesdir)/modules
+
# ------------------------------------------------------------------------------
SCSS_FILES = \
else:
return tornado.web.RequestHandler.write_error(self, status_code, **kwargs)
- def static_url(self, path, static=True):
- ret = tornado.web.RequestHandler.static_url(self, path)
-
- if self.settings.get("debug", False):
- return ret
-
- if static:
- return "//static.ipfire.org%s" % ret
-
- return ret
-
def get_remote_ip(self):
# Fix for clients behind a proxy that sends "X-Forwarded-For".
remote_ips = self.request.remote_ip.split(", ")