UI: Move notification marker to be next to logged-in username

This commit is contained in:
fr33domlover 2019-10-19 09:48:15 +00:00
parent 96c6904b46
commit 5603c8d72d

View file

@ -18,6 +18,10 @@ $maybe (Entity _pid person, verified, sharer, unread) <- mperson
<span> <span>
[You are logged in as [You are logged in as
<span .username>#{personLogin person}</span>] <span .username>#{personLogin person}</span>]
$if unread > 0
<span>
<a href=@{NotificationsR $ sharerIdent sharer}>
🔔#{unread}
<span> <span>
<a href=@{SharerInboxR $ sharerIdent sharer}> <a href=@{SharerInboxR $ sharerIdent sharer}>
[📥 Inbox] [📥 Inbox]
@ -37,13 +41,15 @@ $maybe (Entity _pid person, verified, sharer, unread) <- mperson
<a href=@{AuthR LogoutR}> <a href=@{AuthR LogoutR}>
[🚪 Log out] [🚪 Log out]
$else $else
You are logged in as #{personLogin person} (unverified). If you haven't <span>
received a verification link by email, you can ask to You are logged in as #{personLogin person} (unverified). If you haven't
<a href=@{ResendVerifyEmailR}>resend received a verification link by email, you can ask to
it. Or <a href=@{AuthR LogoutR}>Log out. <a href=@{ResendVerifyEmailR}>resend
$if unread > 0 it. Or <a href=@{AuthR LogoutR}>Log out.
<a href=@{NotificationsR $ sharerIdent sharer}> $if unread > 0
🔔#{unread} <span>
<a href=@{NotificationsR $ sharerIdent sharer}>
🔔#{unread}
$nothing $nothing
<div> <div>
You are not logged in. You are not logged in.