diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 14:36:27 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 14:36:27 +0100 |
commit | ab9dd6209e26ad9856e8cf41c1597a01073d4053 (patch) | |
tree | 4b711928aa1e5a454a3b0a3190ef24962f9199d6 /templates | |
parent | c6e2f270644f6f4246aaffeff705d6f2269f3668 (diff) | |
download | bar-ab9dd6209e26ad9856e8cf41c1597a01073d4053.tar bar-ab9dd6209e26ad9856e8cf41c1597a01073d4053.tar.gz bar-ab9dd6209e26ad9856e8cf41c1597a01073d4053.tar.bz2 bar-ab9dd6209e26ad9856e8cf41c1597a01073d4053.tar.xz bar-ab9dd6209e26ad9856e8cf41c1597a01073d4053.zip |
More colourcoding
Diffstat (limited to 'templates')
-rw-r--r-- | templates/inventoryListing.cassius | 10 | ||||
-rw-r--r-- | templates/inventoryListing.hamlet | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/templates/inventoryListing.cassius b/templates/inventoryListing.cassius index 2f49bc7..225de5d 100644 --- a/templates/inventoryListing.cassius +++ b/templates/inventoryListing.cassius | |||
@@ -1,6 +1,12 @@ | |||
1 | .expired | 1 | .expired, .expireWeek, .expireMonth |
2 | color: #800 | ||
3 | font-weight: bold | 2 | font-weight: bold |
3 | .expireMonth | ||
4 | color: #995e00 | ||
5 | .expireWeek | ||
6 | color: #994000 | ||
7 | .expired | ||
8 | color: #990000 | ||
9 | text-decoration: line-through | ||
4 | .itemId | 10 | .itemId |
5 | font-family: monospace | 11 | font-family: monospace |
6 | div.itemId | 12 | div.itemId |
diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet index 802905d..797bd81 100644 --- a/templates/inventoryListing.hamlet +++ b/templates/inventoryListing.hamlet | |||
@@ -40,7 +40,7 @@ | |||
40 | $of DateNever | 40 | $of DateNever |
41 | <hr> | 41 | <hr> |
42 | $of DateKnown d | 42 | $of DateKnown d |
43 | <span :d < today:.expired>#{dayFormat d} | 43 | <span :d < today:.expired :d < addDays 7 today:.expireWeek :d < addGregorianMonthsRollOver 1 today:.expireMonth>#{dayFormat d} |
44 | <div .td .day> | 44 | <div .td .day> |
45 | $case itemOpened | 45 | $case itemOpened |
46 | $of DateKnown d | 46 | $of DateKnown d |