diff options
Diffstat (limited to '')
-rw-r--r-- | templates/pages/show.mako | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/pages/show.mako b/templates/pages/show.mako index ed487cb..565a518 100644 --- a/templates/pages/show.mako +++ b/templates/pages/show.mako @@ -14,7 +14,7 @@ <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"> + <%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> </%self:detail> <br/> @@ -55,10 +55,12 @@ ${self.left_arrow(date, date)} <script type="text/javascript" src=${"/static/js/show.js" | url}></script> </%def> -<%def name="detail(name, sum, set)"> +<%def name="detail(name, sum, set, color=None)"> <div class="detail"> <img class="mark" src=${"/static/images/closed.png" | url} /> - <span class="heading">${name}:</span> <span class="sum">${sum}</span><br/> + <%self:colorize fgcolor="${color}"> + <span class="heading">${name}:</span> <span class="sum">${sum}</span><br/> + </%self:colorize> <div class="details"> <ul> % for exp in set: |