diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/pages/const.mako | 6 | ||||
-rw-r--r-- | templates/pages/constlist.mako | 4 | ||||
-rw-r--r-- | templates/pages/show.mako | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/templates/pages/const.mako b/templates/pages/const.mako index 502cd64..95098ea 100644 --- a/templates/pages/const.mako +++ b/templates/pages/const.mako @@ -3,8 +3,8 @@ <ul class="arrow"> <li><span class="heading">Beschreibung:</span> ${exp.description}</li> <li><span class="heading">Kategorie:</span> ${exp.category.name}</li> - <li><span class="heading">Betrag:</span> ${exp.expense}</li> - <li><span class="heading">Betrag pro Monat:</span> ${exp.monthly}</li> + <li><span class="heading">Betrag:</span> ${exp.expense | eur}</li> + <li><span class="heading">Betrag pro Monat:</span> ${exp.monthly | eur}</li> <li><span class="heading">Start:</span> ${dformat(exp.start)}</li> <li><span class="heading">Ende:</span> ${dformat(exp.end)}</li> <li><span class="heading">Zahlungsrhythmus:</span> @@ -22,7 +22,7 @@ <% def create(p): - return ("const/%s" % p.id, "%s (%s-%s)<br>%s EUR" % (p.description, dformat(p.start), dformat(p.end), p.expense)) + return ("const/%s" % p.id, "%s (%s-%s)<br>%s" % (p.description, dformat(p.start), dformat(p.end), eur(p.expense))) p = exp.prev if p: diff --git a/templates/pages/constlist.mako b/templates/pages/constlist.mako index 8446641..6084d11 100644 --- a/templates/pages/constlist.mako +++ b/templates/pages/constlist.mako @@ -5,14 +5,14 @@ <h2>Aktuell</h2> <ul class="arrow"> % for c in current: - <li><a href=${"/const/%s" % c.id | url}>${c.description} (${c.expense})</a></li> + <li><a href=${"/const/%s" % c.id | url}>${c.description} (${c.expense | eur})</a></li> % endfor </ul> <h2>Veraltet</h2> <ul class="arrow"> % for c in old: - <li><a href=${"/const/%s" % c.id | url}>${c.description} (${c.expense})</a></li> + <li><a href=${"/const/%s" % c.id | url}>${c.description} (${c.expense | eur})</a></li> % endfor </ul> diff --git a/templates/pages/show.mako b/templates/pages/show.mako index a255fa9..f721f13 100644 --- a/templates/pages/show.mako +++ b/templates/pages/show.mako @@ -6,7 +6,7 @@ % endif % for c in e.catexps: <%self:detail name="${c.cat.name}" sum="${c.expense}" set="${c.all}" args="exp"> - <a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense}</a> + <a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense | eur}</a> </%self:detail> % endfor @@ -15,7 +15,7 @@ </%self:detail> <%self:detail name="In Summa" sum="${e.sum}" set="${e.all}" args="exp" color="#ff2d2d"> - <a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense}</a> + <a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense | eur}</a> </%self:detail> <br/> % endfor @@ -59,7 +59,7 @@ ${self.left_arrow(date, date)} <div class="detail"> <img class="mark" src=${"/static/images/closed.png" | url} /> <%self:colorize fgcolor="${color}"> - <span class="heading">${name}:</span> <span class="sum">${sum}</span><br/> + <span class="heading">${name}:</span> <span class="sum">${sum | eur}</span><br/> </%self:colorize> <div class="details"> <ul> |