UI: Move notification marker to be next to logged-in username
This commit is contained in:
parent
96c6904b46
commit
5603c8d72d
1 changed files with 13 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue