make /logout the fallback href for dasher toggle (fixes #7899)

logout-link
Niklas Fiekas 2021-01-14 22:12:41 +01:00
parent ab2671656c
commit 0b1beba04e
1 changed files with 3 additions and 2 deletions

View File

@ -83,8 +83,9 @@ object layout {
else "Enable"} blind mode</button></form>""")
private val zenToggle = raw("""<a data-icon="E" id="zentog" class="text fbt active">ZEN MODE</a>""")
private def dasher(me: lila.user.User) =
raw(
s"""<div class="dasher"><a id="user_tag" class="toggle link">${me.username}</a><div id="dasher_app" class="dropdown"></div></div>"""
div(cls := "dasher")(
a(id := "user_tag", cls := "toggle link", href := routes.Auth.logoutGet())(me.username),
div(id := "dasher_app", cls := "dropdown")
)
private def allNotifications(implicit ctx: Context) =