diff options
Diffstat (limited to '')
-rw-r--r-- | templates/pages/show.mako | 23 | ||||
-rw-r--r-- | templates/root.mako | 2 |
2 files changed, 23 insertions, 2 deletions
diff --git a/templates/pages/show.mako b/templates/pages/show.mako index 054c287..cf14638 100644 --- a/templates/pages/show.mako +++ b/templates/pages/show.mako @@ -20,13 +20,34 @@ <br/> % endfor +<% + if e.date.month == 1: + date = "%s/12" % (e.date.year - 1) + 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> + +<% + if e.date.month == 13 - len(exps): + date = "%s/1" % (e.date.year + 1) + 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> + <%def name="heading()"> % if len(exps) > 1: Current expenses % else: Expenses for ${get_d(exps[0])} % endif - </%def> <%def name="get_d(e)"> diff --git a/templates/root.mako b/templates/root.mako index 6092242..e789df5 100644 --- a/templates/root.mako +++ b/templates/root.mako @@ -27,7 +27,7 @@ <div class="content"> ${next.body()} </div> - <div style="clear: both;"> </div> + <div style="clear: both;"></div> </div> <div id="footer"> <p id="legal"> |