From e7ddb548772193573af3a7099fdb172ad69e618e Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Thu, 15 Jul 2021 22:46:23 +0500 Subject: [PATCH] Show the links when no JS on mobile --- static/view.js | 2 ++ views/stuff.qtpl | 4 ++-- views/stuff.qtpl.go | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/static/view.js b/static/view.js index dc5b1e2..7425f79 100644 --- a/static/view.js +++ b/static/view.js @@ -3,6 +3,8 @@ let wrapper = document.getElementsByClassName("top-bar__wrapper")[0], highlights = document.getElementsByClassName("top-bar__section_highlights")[0] const toggleElement = el => el.classList.toggle("top-bar__section_hidden-on-mobile") +toggleElement(auth) +toggleElement(highlights) let hamburger = document.createElement("button") hamburger.classList.add("top-bar__hamburger") diff --git a/views/stuff.qtpl b/views/stuff.qtpl index 4964837..7939c91 100644 --- a/views/stuff.qtpl +++ b/views/stuff.qtpl @@ -31,7 +31,7 @@ {% if cfg.UseAuth %} -
  • +
  • {% endif %} -
  • +