summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-07 22:11:11 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-07 22:11:11 +0200
commit63ae50fc433d3bf1e8335a443751512dfbb03508 (patch)
tree83fbd42aac749073202ca828384c23c56d6d7b77
parent318ce04c62bdf9cd744c406e1d5a15f8504e64dc (diff)
downloadweb-63ae50fc433d3bf1e8335a443751512dfbb03508.tar.gz
web-63ae50fc433d3bf1e8335a443751512dfbb03508.tar.bz2
web-63ae50fc433d3bf1e8335a443751512dfbb03508.zip
Add structural comments
-rw-r--r--templates/pages/screenshots.mako21
-rw-r--r--templates/root.mako2
2 files changed, 15 insertions, 8 deletions
diff --git a/templates/pages/screenshots.mako b/templates/pages/screenshots.mako
index e3083ef..a212653 100644
--- a/templates/pages/screenshots.mako
+++ b/templates/pages/screenshots.mako
@@ -3,6 +3,19 @@
%>
<%inherit file="/page.mako" />
+## content
+
+<div style="position:relative">
+ % for (f,t,d),i in h.it.izip(h.getImages("static/images/screens/", "static/images/tmp/", (150,150)), h.it.count()):
+ <a href=${f} class="highslide" rel="highslide">
+ <img style='position: absolute; top: ${i / 3 * 180 + 20}px; left: ${ (i % 3) * 180 + 61.5 }px;' src=${t} title="${d if d else 'Portato Screenie'}" alt ="Screenshot" />
+ </a>
+ % endfor
+ <div style = 'height: ${i / 3 * 180 + 180}px;'><!-- Occupy some space --></div>
+</div>
+
+## functions
+
<%def name="style()">
${parent.style()}
@@ -21,11 +34,3 @@
<link href=${"/static/css/highslide.css" | url} rel="stylesheet" type="text/css" />
</%def>
-<div style="position:relative">
- % for (f,t,d),i in h.it.izip(h.getImages("static/images/screens/", "static/images/tmp/", (150,150)), h.it.count()):
- <a href=${f} class="highslide" rel="highslide">
- <img style='position: absolute; top: ${i / 3 * 180 + 20}px; left: ${ (i % 3) * 180 + 61.5 }px;' src=${t} title="${d if d else 'Portato Screenie'}" alt ="Screenshot" />
- </a>
- % endfor
- <div style = 'height: ${i / 3 * 180 + 180}px;'><!-- Occupy some space --></div>
-</div>
diff --git a/templates/root.mako b/templates/root.mako
index 3d2a486..5997ad9 100644
--- a/templates/root.mako
+++ b/templates/root.mako
@@ -36,6 +36,8 @@
</body>
</html>
+## functions
+
<%namespace name="_hl" module="highlighting"/>
<%def name="hl(lang)">