aboutsummaryrefslogtreecommitdiff
path: root/src/client/View/LoggedIn/Monthly.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/View/LoggedIn/Monthly.elm')
-rw-r--r--src/client/View/LoggedIn/Monthly.elm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/View/LoggedIn/Monthly.elm b/src/client/View/LoggedIn/Monthly.elm
index 5d7260e..17c354a 100644
--- a/src/client/View/LoggedIn/Monthly.elm
+++ b/src/client/View/LoggedIn/Monthly.elm
@@ -68,8 +68,10 @@ paymentLine model loggedInView payment =
[ class ("row" ++ (if loggedInView.paymentEdition == Just payment.id then " edition" else ""))
, onClick actions.address (UpdateLoggedIn (ToggleEdit payment.id))
]
- [ div [ class "cell" ] [ text (payment.name) ]
- , div [ class "cell" ] [ text (toString payment.cost ++ " " ++ getMessage "MoneySymbol" model.translations) ]
+ [ div [ class "cell category" ] [ text (payment.name) ]
+ , div
+ [ class ("cell cost" ++ if payment.cost < 0 then " refund" else "") ]
+ [ text (toString payment.cost ++ " " ++ getMessage "MoneySymbol" model.translations) ]
, div
[ class "cell delete"
, onClick serverCommunications.address (SC.DeleteMonthlyPayment payment.id)