diff --git a/internal/notifications/digest_render.go b/internal/notifications/digest_render.go index 59213582..5c9ae146 100644 --- a/internal/notifications/digest_render.go +++ b/internal/notifications/digest_render.go @@ -48,7 +48,7 @@ type digestVars struct { // renderDigest renders one group's email. base is the public address; with // none set, the email still goes out, without links. func renderDigest(group EmailGroup, name string, items []pendingItem, base string) (digestEmail, error) { - vars := digestVars{Name: name, SettingsURL: joinURL(base, "/settings#notifications")} + vars := digestVars{Name: name, SettingsURL: joinURL(base, "/settings/notifications")} var subject string if group == EmailSummary { vars.Artists = summaryArtists(items, base) diff --git a/internal/notifications/digest_test.go b/internal/notifications/digest_test.go index b89539ff..60799a13 100644 --- a/internal/notifications/digest_test.go +++ b/internal/notifications/digest_test.go @@ -154,7 +154,7 @@ func TestRenderDigest_SummaryGroupsByArtist(t *testing.T) { require.Contains(t, e.Text, " - Pure\n https://music.example/albums/al-3") require.Contains(t, e.Text, "Boards of Canada\n https://music.example/artists/ar-2") require.Contains(t, e.Text, "Tycho\n - Awake") - require.Contains(t, e.Text, "https://music.example/settings#notifications") + require.Contains(t, e.Text, "https://music.example/settings/notifications") require.Contains(t, e.HTML, ` { + return api.get('/api/me'); +} + export async function updateProfile(input: { display_name?: string; email?: string }): Promise { return api.put('/api/me/profile', input); } diff --git a/web/src/lib/components/ActiveSessions.svelte b/web/src/lib/components/ActiveSessions.svelte index f1aaa0b0..674c1d93 100644 --- a/web/src/lib/components/ActiveSessions.svelte +++ b/web/src/lib/components/ActiveSessions.svelte @@ -119,12 +119,14 @@ } -
-

Active sessions

-

- Every device signed in to your account. If you see one you don't recognise — especially - one marked as having moved — sign it out and change your password. -

+ +
+
+

Signed-in devices

+

+ One you don't recognise? Sign it out and change your password. +

+
{#if loadError}

diff --git a/web/src/lib/components/MobileAppDownload.svelte b/web/src/lib/components/MobileAppDownload.svelte index 519b3219..19ee9e10 100644 --- a/web/src/lib/components/MobileAppDownload.svelte +++ b/web/src/lib/components/MobileAppDownload.svelte @@ -1,19 +1,20 @@ {#if info} -

-

Mobile app

-

- Install the Android app paired to this server. Sign in with the same account. -

-
+ - - - Get the Android app - - {info.version}{info.sizeBytes > 0 ? ` · ${formatSize(info.sizeBytes)}` : ''} - - - -
+