@@ -1,6 +1,18 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# ... | |||||
from flask_mako import render_template | |||||
from ._provided import blueprint | |||||
def home(): | |||||
"""Render and return the main intel page.""" | |||||
return render_template("intel/intel.mako") | |||||
def navitem(): | def navitem(): | ||||
return "Intel" | |||||
"""Render and return the navigation item for this module.""" | |||||
return render_template("intel/navitem.mako").decode("utf8") | |||||
@blueprint.rroute("/intel") | |||||
def intel(): | |||||
"""Render and return the main intel page.""" | |||||
return home() |
@@ -1,6 +1,18 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# ... | |||||
from flask_mako import render_template | |||||
from ._provided import blueprint | |||||
def home(): | |||||
"""Render and return the main map page.""" | |||||
return render_template("map/map.mako") | |||||
def navitem(): | def navitem(): | ||||
return "Map" | |||||
"""Render and return the navigation item for this module.""" | |||||
return render_template("map/navitem.mako").decode("utf8") | |||||
@blueprint.rroute("/map") | |||||
def map(): | |||||
"""Render and return the main map page.""" | |||||
return home() |
@@ -0,0 +1,7 @@ | |||||
<%inherit file="../_default.mako"/> | |||||
<%block name="title"> | |||||
${self.support.maketitle("Intel")} | |||||
</%block> | |||||
<h2>Intel</h2> | |||||
## TODO | |||||
<p>No intel available yet!</p> |
@@ -0,0 +1,5 @@ | |||||
% if request.url_rule.endpoint == "intel.intel": | |||||
<strong>Intel</strong> | |||||
% else: | |||||
<a href="${url_for('intel.intel')}">Intel</a> | |||||
% endif |
@@ -0,0 +1,7 @@ | |||||
<%inherit file="../_default.mako"/> | |||||
<%block name="title"> | |||||
${self.support.maketitle("Map")} | |||||
</%block> | |||||
<h2>Map</h2> | |||||
## TODO | |||||
<p>No map available yet!</p> |
@@ -0,0 +1,5 @@ | |||||
% if request.url_rule.endpoint == "map.map": | |||||
<strong>Map</strong> | |||||
% else: | |||||
<a href="${url_for('map.map')}">Map</a> | |||||
% endif |