From c8417df6f1bf6cf8eae03a1b14e67e6c3c113afa Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 3 Mar 2022 16:52:04 +0000 Subject: fix duplicate ids in login form and move login/register buttons into the hamburger menu on small screens --- view/tpl/login.tpl | 8 ++++---- view/tpl/navbar_default.tpl | 43 ++++++++++++++++++++++++------------------- 2 files changed, 28 insertions(+), 23 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/login.tpl b/view/tpl/login.tpl index cc4616b16..ead524193 100644 --- a/view/tpl/login.tpl +++ b/view/tpl/login.tpl @@ -1,13 +1,13 @@
-
+ {{foreach $hiddens as $k=>$v}} diff --git a/view/tpl/navbar_default.tpl b/view/tpl/navbar_default.tpl index 8d6d5dfd7..0dccd4404 100644 --- a/view/tpl/navbar_default.tpl +++ b/view/tpl/navbar_default.tpl @@ -1,23 +1,5 @@
+ {{if $nav.login && !$userinfo}} +
+ {{if $nav.loginmenu.1.4}} + + {{$nav.loginmenu.1.1}} + + {{else}} + + {{$nav.loginmenu.1.1}} + + {{/if}} + {{if $nav.register}} + + {{$nav.register.1}} + + {{/if}} +
+
+ {{else}}
{{if $name}} @@ -189,7 +191,10 @@ {{/if}}
+ {{/if}} + +
{{if $channel_apps.0}} -- cgit v1.2.3