summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/page.mako12
-rw-r--r--templates/pages/show.mako8
2 files changed, 17 insertions, 3 deletions
diff --git a/templates/page.mako b/templates/page.mako
index e08207c..bc52c7f 100644
--- a/templates/page.mako
+++ b/templates/page.mako
@@ -23,3 +23,15 @@ ${next.body()}
</a>
</%def>
+<%def name="colorize(fgcolor=None, bgcolor=None, tag='span')">
+ % if fgcolor is None and bgcolor is None:
+ ${caller.body()}
+ % else:
+ <%
+ style = ""
+ if fgcolor is not None: style += " color: " + fgcolor
+ if bgcolor is not None: style += " background: "+ bgcolor
+ %>
+ <${tag} style="${style}">${caller.body()}</${tag}>
+ % endif
+</%def>
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:
y?h=0.13&id=e8868d63c39db975c8627c7fc87dfdd4f2308bf6&follow=1'>moved *.glade and *.ui to one directory to omit the change of the config.py e...necoro8-5/+2538 2007-04-24moved *.glade and *.ui to one directory to omit the change of the config.py e...necoro5-1191/+0 2007-04-24moved *.glade and *.ui to one directory to omit the change of the config.py e...necoro1-1340/+0 2007-04-24added dialogs to warn you when the queue is running on quitting portatonecoro8-214/+267 2007-04-20Made qt plugin-ready; lots of documentationnecoro15-81/+351 2007-04-18nomsgnecoro1-1/+0 2007-04-18finished Qt-Frontendnecoro5-15/+117 2007-04-17marking installed packages in pkglistnecoro5-14/+50 2007-04-16added ebuild window for Qt-Frontendnecoro4-2/+229 2007-04-16added preferences for Qt-Frontendnecoro9-279/+710 2007-04-13Improved masking display and made most of the Qt-Frontend worknecoro7-35/+334 2007-04-10Some more functionality for the Qt-Frontend (complete emerge)necoro8-217/+347 2007-04-07Some more functionality for the Qt-Frontendnecoro11-88/+463 2007-04-07Added Qt-Terminalnecoro4-4/+213 2007-04-06First qt draftnecoro6-1/+796 2007-04-04showed masked packages unmasked by the user similar to stable marked testing ...necoro5-13/+40 2007-03-31changed changelognecoro1-1/+2 2007-03-31Some small changes for etcproposals 1.1necoro1-2/+2 2007-03-31Some small changes for etcproposals 1.1necoro2-3/+3 2007-03-31Some small changes for etcproposals 1.1necoro1-6/+13 2007-03-31Allowed Plugins to have a menunecoro7-201/+315 2007-03-15Added etc-proposals pluginnecoro7-28/+121 2007-03-10Added USE_EXPAND-supportnecoro5-11/+63 2007-03-10Added plugin-data to about-dialognecoro3-197/+264