From d49358409d9e02ce258a6c52b700dbfbcc48a67e Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 11 Jan 2012 01:28:01 +0100 Subject: Add expense to const navigation --- static/css/style.css | 14 +++++++++++++- templates/pages/const.mako | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index a450496..9731684 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -65,18 +65,30 @@ img { float: left; margin-right: 15px; text-decoration: none; + text-align: center; } #right { float: right; margin-left: 15px; text-decoration: none; + text-align: center; } -#left > img, #right > img { +#left > img { width: 20px; height: 20px; vertical-align: middle; + float: left; + padding-right: 5px; +} + +#right > img { + width: 20px; + height: 20px; + vertical-align: middle; + float: right; + padding-left: 5px; } .heading { diff --git a/templates/pages/const.mako b/templates/pages/const.mako index acb672b..502cd64 100644 --- a/templates/pages/const.mako +++ b/templates/pages/const.mako @@ -22,7 +22,7 @@ <% def create(p): - return ("const/%s" % p.id, "%s (%s-%s)" % (p.description, dformat(p.start), dformat(p.end))) + return ("const/%s" % p.id, "%s (%s-%s)
%s EUR" % (p.description, dformat(p.start), dformat(p.end), p.expense)) p = exp.prev if p: -- cgit v1.2.3-54-g00ecf