From 4385aed0a2bfcf3c743d0ad2c385f316644e55ff Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Tue, 25 Apr 2017 12:18:24 +0200 Subject: [PATCH] Minor code cleanups. --- src/View.elm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/View.elm b/src/View.elm index 592cc15..ce9ccb9 100644 --- a/src/View.elm +++ b/src/View.elm @@ -9,8 +9,8 @@ import Mastodon import Model exposing (Model, Draft, DraftMsg(..), Viewer, ViewerMsg(..), Msg(..)) import ViewHelper import Date -import Date.Extra.Config.Config_en_au exposing (config) -import Date.Extra.Format as Format exposing (format) +import Date.Extra.Config.Config_en_au as DateEn +import Date.Extra.Format as DateFormat visibilities : Dict.Dict String String @@ -153,10 +153,9 @@ statusView ({ account, content, media_attachments, reblog, mentions } as status) let accountLinkAttributes = [ href account.url - - -- When clicking on a status, we should not let the browser - -- redirect to a new page. That's why we're preventing the default - -- behavior here + -- When clicking on a status, we should not let the browser + -- redirect to a new page. That's why we're preventing the default + -- behavior here , ViewHelper.onClickWithPreventAndStop (OnLoadUserAccount account.id) ] in @@ -267,7 +266,7 @@ statusActionsView status = |> Result.withDefault (Date.fromTime 0) formatDate = - text <| format config "%m/%d/%Y %H:%M" tootDate + text <| DateFormat.format DateEn.config "%m/%d/%Y %H:%M" tootDate in div [ class "btn-group actions" ] [ a