diff options
author | Joris | 2015-09-06 16:46:59 +0200 |
---|---|---|
committer | Joris | 2015-09-06 16:46:59 +0200 |
commit | 3853811450d4fe801da996eb48825049c3541030 (patch) | |
tree | b483c6152f55b6fe87d23108d2d0346a593e51ac /src/client/View/Payments/ExceedingPayer.elm | |
parent | 0b6f0fa29075178b45cb17d2932003ab4b342280 (diff) |
Renaming PaymentView to LoggedInView
Diffstat (limited to 'src/client/View/Payments/ExceedingPayer.elm')
-rw-r--r-- | src/client/View/Payments/ExceedingPayer.elm | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/client/View/Payments/ExceedingPayer.elm b/src/client/View/Payments/ExceedingPayer.elm deleted file mode 100644 index 88b3a72..0000000 --- a/src/client/View/Payments/ExceedingPayer.elm +++ /dev/null @@ -1,35 +0,0 @@ -module View.Payments.ExceedingPayer - ( exceedingPayers - ) where - -import Html exposing (..) -import Html.Attributes exposing (..) -import List - -import Model exposing (Model) -import Model.User exposing (getUserName) -import Model.Payers exposing (..) -import Model.View.LoggedView exposing (LoggedView) -import Model.Translations exposing (getMessage) - -exceedingPayers : Model -> LoggedView -> Html -exceedingPayers model loggedView = - div - [ class "exceedingPayers" ] - (List.map (exceedingPayer model loggedView) (getOrderedExceedingPayers loggedView.payers)) - -exceedingPayer : Model -> LoggedView -> ExceedingPayer -> Html -exceedingPayer model loggedView payer = - div - [ class "exceedingPayer" ] - [ span - [ class "userName" ] - [ payer.userId - |> getUserName loggedView.users - |> Maybe.withDefault "−" - |> text - ] - , span - [ class "amount" ] - [ text ("+ " ++ (toString payer.amount) ++ " " ++ (getMessage "MoneySymbol" model.translations)) ] - ] |