Prepare translating dates

This commit is contained in:
Eike Kettner
2021-04-12 10:53:34 +02:00
parent 7cb4f741e0
commit 5737eba82d
26 changed files with 593 additions and 154 deletions

View File

@@ -13,7 +13,6 @@ import Html exposing (..)
import Html.Attributes exposing (..)
import Messages.Comp.UserTable exposing (Texts)
import Styles as S
import Util.Time exposing (formatDateTime)
type alias Model =
@@ -93,9 +92,9 @@ renderUserLine2 texts model user =
[ String.fromInt user.loginCount |> text
]
, td [ class "hidden sm:table-cell text-center" ]
[ Maybe.map formatDateTime user.lastLogin |> Maybe.withDefault "" |> text
[ Maybe.map texts.formatDateTime user.lastLogin |> Maybe.withDefault "" |> text
]
, td [ class "hidden md:table-cell text-center" ]
[ formatDateTime user.created |> text
[ texts.formatDateTime user.created |> text
]
]