From 5603c8d72ddcaccbdb56b419e518acf3fc239573 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Sat, 19 Oct 2019 09:48:15 +0000 Subject: [PATCH] UI: Move notification marker to be next to logged-in username --- templates/default-layout.hamlet | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/templates/default-layout.hamlet b/templates/default-layout.hamlet index 5de5edc..9d9ab18 100644 --- a/templates/default-layout.hamlet +++ b/templates/default-layout.hamlet @@ -18,6 +18,10 @@ $maybe (Entity _pid person, verified, sharer, unread) <- mperson [You are logged in as #{personLogin person}] + $if unread > 0 + + + 🔔#{unread} [📥 Inbox] @@ -37,13 +41,15 @@ $maybe (Entity _pid person, verified, sharer, unread) <- mperson [🚪 Log out] $else - You are logged in as #{personLogin person} (unverified). If you haven't - received a verification link by email, you can ask to - resend - it. Or Log out. - $if unread > 0 - - 🔔#{unread} + + You are logged in as #{personLogin person} (unverified). If you haven't + received a verification link by email, you can ask to + resend + it. Or Log out. + $if unread > 0 + + + 🔔#{unread} $nothing
You are not logged in.