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