Browse Source

Stubs for map and intel.

master
Ben Kurtovic 7 years ago
parent
commit
5328d2e1f9
6 changed files with 52 additions and 4 deletions
  1. +14
    -2
      calefaction/modules/intel.py
  2. +14
    -2
      calefaction/modules/map.py
  3. +7
    -0
      templates/intel/intel.mako
  4. +5
    -0
      templates/intel/navitem.mako
  5. +7
    -0
      templates/map/map.mako
  6. +5
    -0
      templates/map/navitem.mako

+ 14
- 2
calefaction/modules/intel.py View File

@@ -1,6 +1,18 @@
# -*- 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():
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()

+ 14
- 2
calefaction/modules/map.py View File

@@ -1,6 +1,18 @@
# -*- 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():
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()

+ 7
- 0
templates/intel/intel.mako View File

@@ -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>

+ 5
- 0
templates/intel/navitem.mako View File

@@ -0,0 +1,5 @@
% if request.url_rule.endpoint == "intel.intel":
<strong>Intel</strong>
% else:
<a href="${url_for('intel.intel')}">Intel</a>
% endif

+ 7
- 0
templates/map/map.mako View File

@@ -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>

+ 5
- 0
templates/map/navitem.mako View File

@@ -0,0 +1,5 @@
% if request.url_rule.endpoint == "map.map":
<strong>Map</strong>
% else:
<a href="${url_for('map.map')}">Map</a>
% endif

Loading…
Cancel
Save