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