# TODO install the base for now and add all other templates later
templates_DATA = \
- src/templates/about.html \
src/templates/base.html \
src/templates/error.html \
src/templates/index.html
templates_people_modulesdir = $(templates_peopledir)/modules
templates_static_DATA = \
+ src/templates/static/about.html \
src/templates/static/legal.html \
src/templates/static/help.html
-{% extends "base.html" %}
+{% extends "../base.html" %}
{% block title %}{{ _("About IPFire") }}{% end block %}
self.add_handlers(r"(www\.)?([a-z]+\.dev\.)?ipfire\.org", [
# Entry site that lead the user to index
(r"/", IndexHandler),
- (r"/about", AboutHandler),
# Authentication
(r"/login", auth.LoginHandler),
(r"/news/(.*)", handlers.NewsHandler),
# Static Pages
+ (r"/about", StaticHandler, { "template" : "about.html" }),
(r"/legal", StaticHandler, { "template" : "legal.html" }),
(r"/help", StaticHandler, { "template" : "help.html" }),
return self.render("index.html", latest_release=latest_release)
-class AboutHandler(base.BaseHandler):
- def get(self):
- # Cache page for a day
- self.set_expires(3600 * 24)
-
- self.render("about.html")
-
-
class NewsHandler(base.BaseHandler):
def get(self, post):
self.redirect("https://www.ipfire.org/blog/%s" % post, permanent=True)