summaryrefslogtreecommitdiff
path: root/templates/pages/show.mako
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 03:19:21 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 03:19:21 +0100
commit01444a8e45b7bd5b846ebc1a26afb87ee18f8265 (patch)
treeceb2fcc0b90663eb02a8271fdc2427cd869771d4 /templates/pages/show.mako
parenta69e90c161e0a476f81efe907631c4c26c4fd88e (diff)
downloadkosten-01444a8e45b7bd5b846ebc1a26afb87ee18f8265.tar.gz
kosten-01444a8e45b7bd5b846ebc1a26afb87ee18f8265.tar.bz2
kosten-01444a8e45b7bd5b846ebc1a26afb87ee18f8265.zip
More nice things for constant expenses
Diffstat (limited to '')
-rw-r--r--templates/pages/show.mako12
1 files changed, 3 insertions, 9 deletions
diff --git a/templates/pages/show.mako b/templates/pages/show.mako
index 4a8f9ff..ea9f2e2 100644
--- a/templates/pages/show.mako
+++ b/templates/pages/show.mako
@@ -11,7 +11,7 @@
% endfor
<%self:detail name="Constant" sum="${e.constsum}" set="${e.consts}" args="exp">
- <a href=${"/const/edit/%s" % exp.id | url}>${exp.monthly} -- ${exp.description}</a>
+ <a href=${"/const/%s" % exp.id | url}>${exp.monthly} -- ${exp.description}</a>
</%self:detail>
<%self:detail name="In Summa" sum="${e.sum}" set="${e.all}" args="exp">
@@ -26,10 +26,7 @@
else:
date = "%s/%s" % (e.date.year, e.date.month - 1)
%>
-<a id="left" href=${"/" + date | url}>
- <img src=${"/static/images/arrow_left.png" | url} />
- <span class="navdate">${date}</span>
-</a>
+${self.left_arrow(date, date)}
% if not is_last:
<%
@@ -38,10 +35,7 @@
else:
date = "%s/%s" % (e.date.year, e.date.month + len(exps))
%>
- <a id="right" href=${"/" + date | url}>
- <span class="navdate">${date}</span>
- <img src=${"/static/images/arrow_right.png" | url}/>
- </a>
+ ${self.right_arrow(date, date)}
% endif
<%def name="heading()">