1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-19 07:02:51 +00:00

Fix the hamburger on wikis without auth

This commit is contained in:
Timur Ismagilov 2021-07-25 18:17:13 +05:00
parent ea1f0a8e51
commit 6e47ea0cfe
2 changed files with 10 additions and 10 deletions

View File

@ -30,8 +30,8 @@
<input type="text" name="q" placeholder="Title search" class="top-bar__search-bar"> <input type="text" name="q" placeholder="Title search" class="top-bar__search-bar">
</form> </form>
</li> </li>
{% if cfg.UseAuth %}
<li class="top-bar__section top-bar__section_auth"> <li class="top-bar__section top-bar__section_auth">
{% if cfg.UseAuth %}
<ul class="top-bar__auth auth-links"> <ul class="top-bar__auth auth-links">
<li class="auth-links__box auth-links__user-box"> <li class="auth-links__box auth-links__user-box">
{% if u.Group == "anon" %} {% if u.Group == "anon" %}
@ -51,8 +51,8 @@
</li> </li>
{% endif %} {% endif %}
</ul> </ul>
</li>
{% endif %} {% endif %}
</li>
<li class="top-bar__section top-bar__section_highlights"> <li class="top-bar__section top-bar__section_highlights">
<ul class="top-bar__highlights"> <ul class="top-bar__highlights">
{%- for _, link := range cfg.HeaderLinks -%} {%- for _, link := range cfg.HeaderLinks -%}

View File

@ -77,12 +77,12 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
<input type="text" name="q" placeholder="Title search" class="top-bar__search-bar"> <input type="text" name="q" placeholder="Title search" class="top-bar__search-bar">
</form> </form>
</li> </li>
`)
//line views/stuff.qtpl:33
if cfg.UseAuth {
//line views/stuff.qtpl:33
qw422016.N().S(`
<li class="top-bar__section top-bar__section_auth"> <li class="top-bar__section top-bar__section_auth">
`)
//line views/stuff.qtpl:34
if cfg.UseAuth {
//line views/stuff.qtpl:34
qw422016.N().S(`
<ul class="top-bar__auth auth-links"> <ul class="top-bar__auth auth-links">
<li class="auth-links__box auth-links__user-box"> <li class="auth-links__box auth-links__user-box">
`) `)
@ -142,12 +142,12 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
//line views/stuff.qtpl:52 //line views/stuff.qtpl:52
qw422016.N().S(` qw422016.N().S(`
</ul> </ul>
</li>
`) `)
//line views/stuff.qtpl:55 //line views/stuff.qtpl:54
} }
//line views/stuff.qtpl:55 //line views/stuff.qtpl:54
qw422016.N().S(` qw422016.N().S(`
</li>
<li class="top-bar__section top-bar__section_highlights"> <li class="top-bar__section top-bar__section_highlights">
<ul class="top-bar__highlights"> <ul class="top-bar__highlights">
`) `)