summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/css/style.css14
-rw-r--r--static/images/arrow_left.pngbin0 -> 9190 bytes
-rw-r--r--static/images/arrow_right.pngbin0 -> 7846 bytes
-rw-r--r--static/js/show.js1
-rw-r--r--templates/pages/show.mako23
-rw-r--r--templates/root.mako2
6 files changed, 35 insertions, 5 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 56abd29..2ddf6f2 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -61,14 +61,22 @@ img {
border: none;
}
-img.left {
+#left {
float: left;
margin-right: 15px;
+ text-decoration: none;
}
-img.right {
+#right {
float: right;
margin-left: 15px;
+ text-decoration: none;
+}
+
+#left > img, #right > img {
+ width: 20px;
+ height: 20px;
+ vertical-align: middle;
}
div.detail > .heading {
@@ -196,7 +204,7 @@ div.detail > .mark {
.content {
float: left;
- width: 620px;
+ width: 663px;
padding: 15px 0px;
margin-bottom: 20px;
}
diff --git a/static/images/arrow_left.png b/static/images/arrow_left.png
new file mode 100644
index 0000000..de740e7
--- /dev/null
+++ b/static/images/arrow_left.png
Binary files differ
diff --git a/static/images/arrow_right.png b/static/images/arrow_right.png
new file mode 100644
index 0000000..14922a9
--- /dev/null
+++ b/static/images/arrow_right.png
Binary files differ
diff --git a/static/js/show.js b/static/js/show.js
index 2c43015..333ce17 100644
--- a/static/js/show.js
+++ b/static/js/show.js
@@ -1,4 +1,5 @@
$(document).ready(function(){
+
$(".detail > .heading").click(function() {
$(this).prevAll(".mark:last").click();
});
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">
/portato.git/commit/setup.py?id=57c377c2ea2d8f2b3c265a2f54925fd661ac3164&follow=1'>Removed gtk subdirRené 'Necoro' Neumann21-134/+79 2008-03-18Removed wrapperRené 'Necoro' Neumann2-238/+184 2008-03-18Split and renamed gui_helperRené 'Necoro' Neumann4-249/+266 2008-03-18Splitted windows.pyRené 'Necoro' Neumann10-424/+549 2008-03-12Moved get_dependencies to top package classRené 'Necoro' Neumann4-50/+85 2008-03-11improved performance by caching the use_expand queriesRené 'Necoro' Neumann1-5/+14 2008-03-11use catapult varsRené 'Necoro' Neumann2-4/+6 2008-03-11Updated catapult stuffRené 'Necoro' Neumann5-56/+108 2008-03-10Generate correct KeyNotFoundExceptionRené 'Necoro' Neumann1-2/+2 2008-03-09Small changesRené 'Necoro' Neumann3-1/+4 2008-03-07Better session handlingRené 'Necoro' Neumann1-5/+54 2008-03-07Small changesRené 'Necoro' Neumann1-1/+4 2008-03-07Updated shm module to 1.2René 'Necoro' Neumann1-8/+21 2008-03-07Update TODORené 'Necoro' Neumann1-3/+1 2008-03-07hmm ... yesRené 'Necoro' Neumann1-1/+1 2008-03-06Used better exceptions for configuration parserRené 'Necoro' Neumann1-26/+114 2008-03-06Update translationRené 'Necoro' Neumann2-349/+393 2008-03-06Update createpot.shRené 'Necoro' Neumann1-3/+2 2008-03-06Use 'nofork' instead of 'nolistener'René 'Necoro' Neumann1-3/+3 2008-03-05Install glade files into template dir and not data dirRené 'Necoro' Neumann2-2/+1 2008-03-05Added dependency listRené 'Necoro' Neumann3-117/+237