diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 13:18:34 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 13:18:34 +0100 |
commit | 57d594818c14652681dce54d324b6b76941b2f4e (patch) | |
tree | f3e1e02e2fa41ff0d87eace034d6c883668841c5 /templates | |
parent | 3d828feba67f21ae62d1e6eb598a22ffaebf1174 (diff) | |
parent | 3bfe0bdcb79b398a387e202c5150b5e6fd230d3a (diff) | |
download | bar-57d594818c14652681dce54d324b6b76941b2f4e.tar bar-57d594818c14652681dce54d324b6b76941b2f4e.tar.gz bar-57d594818c14652681dce54d324b6b76941b2f4e.tar.bz2 bar-57d594818c14652681dce54d324b6b76941b2f4e.tar.xz bar-57d594818c14652681dce54d324b6b76941b2f4e.zip |
Merge branch 'feat/openYes'
Diffstat (limited to 'templates')
-rw-r--r-- | templates/default-layout.cassius | 2 | ||||
-rw-r--r-- | templates/inventoryListing.cassius | 3 | ||||
-rw-r--r-- | templates/inventoryListing.hamlet | 33 |
3 files changed, 23 insertions, 15 deletions
diff --git a/templates/default-layout.cassius b/templates/default-layout.cassius index da76e28..bc64e8e 100644 --- a/templates/default-layout.cassius +++ b/templates/default-layout.cassius | |||
@@ -40,7 +40,7 @@ div.itemId | |||
40 | color: #aaa | 40 | color: #aaa |
41 | .table .table .td, .table .table .tc, .table .table .th, .table .table .kind | 41 | .table .table .td, .table .table .tc, .table .table .th, .table .table .kind |
42 | padding: 0 | 42 | padding: 0 |
43 | table table td, table table th | 43 | table table td, table table th, .table table td, .table table th |
44 | padding: 0 | 44 | padding: 0 |
45 | #messages | 45 | #messages |
46 | list-style-type: none | 46 | list-style-type: none |
diff --git a/templates/inventoryListing.cassius b/templates/inventoryListing.cassius new file mode 100644 index 0000000..9a7459e --- /dev/null +++ b/templates/inventoryListing.cassius | |||
@@ -0,0 +1,3 @@ | |||
1 | .expired | ||
2 | color: #800 | ||
3 | font-weight: bold \ No newline at end of file | ||
diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet index f0ff1e4..802905d 100644 --- a/templates/inventoryListing.hamlet +++ b/templates/inventoryListing.hamlet | |||
@@ -30,22 +30,27 @@ | |||
30 | <div .kind>#{itemKind} | 30 | <div .kind>#{itemKind} |
31 | <div .type>#{itemType} | 31 | <div .type>#{itemType} |
32 | <div .td .day> | 32 | <div .td .day> |
33 | $maybe bought <- itemBought | 33 | $case itemBought |
34 | #{dayFormat bought} | 34 | $of DateUnknown |
35 | $nothing | 35 | <hr> |
36 | <hr> | 36 | $of DateKnown d |
37 | #{dayFormat d} | ||
37 | <div .td .day> | 38 | <div .td .day> |
38 | $maybe expires <- itemExpires | 39 | $case itemExpires |
39 | #{dayFormat expires} | 40 | $of DateNever |
40 | $nothing | 41 | <hr> |
41 | <hr> | 42 | $of DateKnown d |
43 | <span :d < today:.expired>#{dayFormat d} | ||
42 | <div .td .day> | 44 | <div .td .day> |
43 | $maybe opened <- itemOpened | 45 | $case itemOpened |
44 | #{dayFormat opened} | 46 | $of DateKnown d |
45 | $nothing | 47 | #{dayFormat d} |
46 | <form method=post action=@{OpenItemR itemId}> | 48 | $of DateUnknown |
47 | <button type=submit> | 49 | Yes |
48 | Open | 50 | $of DateNever |
51 | <form method=post action=@{OpenItemR itemId}> | ||
52 | <button type=submit> | ||
53 | Open | ||
49 | <div .td> | 54 | <div .td> |
50 | <form method=get action=@{UpdateItemR itemId}##{toPathPiece itemId}> | 55 | <form method=get action=@{UpdateItemR itemId}##{toPathPiece itemId}> |
51 | <button type=submit> | 56 | <button type=submit> |