mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Prepare translating dates
This commit is contained in:
@ -32,7 +32,6 @@ import Styles as S
|
||||
import Util.Folder
|
||||
import Util.Person
|
||||
import Util.Tag
|
||||
import Util.Time
|
||||
|
||||
|
||||
view2 : Texts -> Flags -> UiSettings -> Model -> Html Msg
|
||||
@ -467,7 +466,7 @@ renderItemDateSuggestions : Texts -> Model -> Html Msg
|
||||
renderItemDateSuggestions texts model =
|
||||
renderSuggestions texts
|
||||
model
|
||||
Util.Time.formatDate
|
||||
texts.formatDate
|
||||
(List.take 6 model.itemProposals.itemDate)
|
||||
SetItemDateSuggestion
|
||||
|
||||
@ -476,7 +475,7 @@ renderDueDateSuggestions : Texts -> Model -> Html Msg
|
||||
renderDueDateSuggestions texts model =
|
||||
renderSuggestions texts
|
||||
model
|
||||
Util.Time.formatDate
|
||||
texts.formatDate
|
||||
(List.take 6 model.itemProposals.dueDate)
|
||||
SetDueDateSuggestion
|
||||
|
||||
|
@ -19,7 +19,6 @@ import Messages.Comp.ItemDetail.ItemInfoHeader exposing (Texts)
|
||||
import Page exposing (Page(..))
|
||||
import Styles as S
|
||||
import Util.Maybe
|
||||
import Util.Time
|
||||
|
||||
|
||||
view : Texts -> UiSettings -> Model -> Html Msg
|
||||
@ -32,7 +31,7 @@ view texts settings model =
|
||||
]
|
||||
[ Icons.dateIcon2 "mr-2"
|
||||
, Maybe.withDefault model.item.created model.item.itemDate
|
||||
|> Util.Time.formatDate
|
||||
|> texts.formatDate
|
||||
|> text
|
||||
]
|
||||
, Data.UiSettings.fieldVisible settings Data.Fields.Date
|
||||
@ -51,7 +50,7 @@ view texts settings model =
|
||||
, title texts.dueDate
|
||||
]
|
||||
[ Icons.dueDateIcon2 "mr-2"
|
||||
, Maybe.map Util.Time.formatDate model.item.dueDate
|
||||
, Maybe.map texts.formatDate model.item.dueDate
|
||||
|> Maybe.withDefault ""
|
||||
|> text
|
||||
]
|
||||
|
@ -292,14 +292,14 @@ itemIdInfo texts model =
|
||||
, title texts.createdOn
|
||||
]
|
||||
[ i [ class "fa fa-sun font-thin mr-2" ] []
|
||||
, Util.Time.formatDateTime model.item.created |> text
|
||||
, texts.formatDateTime model.item.created |> text
|
||||
]
|
||||
, div
|
||||
[ class "inline-flex items-center"
|
||||
, title texts.lastUpdateOn
|
||||
]
|
||||
[ i [ class "fa fa-pencil-alt mr-2" ] []
|
||||
, Util.Time.formatDateTime model.item.updated |> text
|
||||
, texts.formatDateTime model.item.updated |> text
|
||||
]
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user