module View.Payments.ExceedingPayer ( exceedingPayers ) where import Html exposing (..) import Html.Attributes exposing (..) import List import Model.Payers exposing (..) import Model.View.PaymentView exposing (PaymentView) exceedingPayers : PaymentView -> Html exceedingPayers paymentView = div [ class "exceedingPayers" ] (List.map exceedingPayer (getOrderedExceedingPayers paymentView.payers)) exceedingPayer : ExceedingPayer -> Html exceedingPayer payer = div [ class "exceedingPayer" ] [ span [ class "userName" ] [ text payer.userName ] , span [ class "amount" ] [ text ("+ " ++ (toString payer.amount)) ] ]