commit 0666d4fb772b2e4d1fee48fa786a74db605e735e
parent 6cc7ece69ae971a86ddcd29c04816801a3d25ff2
Author: mtmn <miro@haravara.org>
Date: Fri, 17 Apr 2026 23:08:58 +0200
chore: remove update timestamp from footer
Diffstat:
1 file changed, 13 insertions(+), 24 deletions(-)
diff --git a/src/Client.elm b/src/Client.elm
@@ -623,7 +623,13 @@ view model =
""
)
)
- , href (if model.userSlug == "" then "/" else "/~" ++ model.userSlug)
+ , href
+ (if model.userSlug == "" then
+ "/"
+
+ else
+ "/~" ++ model.userSlug
+ )
]
[ text "listens" ]
, button
@@ -680,8 +686,6 @@ view model =
[ renderPeriodSelector model.statsPeriod model.showCustomInput model.customInput model.customError
, renderStatsView model.expandedSections model.loadedSections model.stats
]
- , div [ Attr.id "footer", class "small" ]
- [ span [] [ text (lastCheckText model.currentTime model.lastCheck) ] ]
]
@@ -1041,7 +1045,8 @@ timeAgo mNow mTimestamp =
mins =
diff // 60
in
- String.fromInt mins ++ " minute"
+ String.fromInt mins
+ ++ " minute"
++ (if mins > 1 then
"s"
@@ -1055,7 +1060,8 @@ timeAgo mNow mTimestamp =
hours =
diff // 3600
in
- String.fromInt hours ++ " hour"
+ String.fromInt hours
+ ++ " hour"
++ (if hours > 1 then
"s"
@@ -1069,7 +1075,8 @@ timeAgo mNow mTimestamp =
days =
diff // 86400
in
- String.fromInt days ++ " day"
+ String.fromInt days
+ ++ " day"
++ (if days > 1 then
"s"
@@ -1080,21 +1087,3 @@ timeAgo mNow mTimestamp =
_ ->
"unknown time"
-
-
-lastCheckText : Maybe Time.Posix -> Maybe Time.Posix -> String
-lastCheckText mCurrent mLastCheck =
- case ( mCurrent, mLastCheck ) of
- ( Just current, Just lastCheck ) ->
- let
- diff =
- (Time.posixToMillis current - Time.posixToMillis lastCheck) // 1000
- in
- if diff < 5 then
- "just updated"
-
- else
- "last checked " ++ String.fromInt diff ++ "s ago"
-
- _ ->
- ""