Pārlūkot izejas kodu

Stubs for map and intel.

master
Ben Kurtovic pirms 8 gadiem
vecāks
revīzija
5328d2e1f9
6 mainītis faili ar 52 papildinājumiem un 4 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt