diff options
Diffstat (limited to '')
-rw-r--r-- | templates/pages/show.mako | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/templates/pages/show.mako b/templates/pages/show.mako deleted file mode 100644 index 06a9915..0000000 --- a/templates/pages/show.mako +++ /dev/null @@ -1,73 +0,0 @@ -<%inherit file="/page.mako" /> - -% for e in exps: - % if len(exps) > 1: - <h2>${get_d(e)}</h2> - % endif - % for c in sorted(e.catexps, key = lambda c: c.cat.name): - <%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 | eur}</a> - </%self:detail> - % endfor - - <%self:detail name="Constant" sum="${e.constsum}" set="${e.consts}" args="exp"> - <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" color="#ff2d2d"> - <a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense | eur}</a> - </%self:detail> - <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) -%> -${self.left_arrow(date, date)} - -% if not is_last: - <% - 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)) - %> - ${self.right_arrow(date, date)} -% endif - -<%block name="heading"> - % if len(exps) > 1: - Aktuelle Kosten - % else: - Kosten für ${get_d(exps[0])} - % endif -</%block> - -<%def name="get_d(e)"> - ${e.date.year}/${e.date.month} -</%def> - -<%block name="js"> - ${parent.js()} - <script type="text/javascript" src=${"/static/js/show.js" | url}></script> -</%block> - -<%def name="detail(name, sum, set, color=None)"> - <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 | eur}</span><br/> - </%self:colorize> - <div class="details"> - <ul> - % for exp in set: - <li class="expense">${caller.body(exp)}</li> - % endfor - </ul> - </div> - </div> -</%def> - |