Show New Post button when Chorus, not SimpleNav

Ref T681
pull/157/head
Matt Baer 5 years ago
parent df56060f99
commit fda2929aed
  1. 4
      templates/base.tmpl
  2. 4
      templates/user/include/header.tmpl

@ -13,7 +13,7 @@
<body {{template "body-attrs" .}}>
<div id="overlay"></div>
<header>
{{ if .SimpleNav }}<nav id="full-nav">
{{ if .Chorus }}<nav id="full-nav">
<div class="left-side">
<h2><a href="/">{{.SiteName}}</a></h2>
</div>
@ -49,7 +49,7 @@
{{if not .Username}}<a href="/login"{{if eq .Path "/login"}} class="selected"{{end}}>Log in</a>{{else if .SimpleNav}}<a href="/me/logout">Log out</a>{{end}}
{{ end }}
</nav>
{{if .SimpleNav}}{{if .Username}}<div class="right-side" style="font-size: 0.86em;">
{{if .Chorus}}{{if .Username}}<div class="right-side" style="font-size: 0.86em;">
<a class="simple-btn" href="/new">New Post</a>
</div>{{end}}
</nav>

@ -22,7 +22,7 @@
</nav>
</nav>
{{else}}
{{ if .SimpleNav }}<nav id="full-nav">
{{ if .Chorus }}<nav id="full-nav">
<div class="left-side">
<h1><a href="/" title="Return to editor">{{.SiteName}}</a></h1>
</div>
@ -63,7 +63,7 @@
{{end}}
</nav>
</nav>
{{if .SimpleNav}}{{if .Username}}<div class="right-side">
{{if .Chorus}}{{if .Username}}<div class="right-side">
<a class="simple-btn" href="/new">New Post</a>
</div>{{end}}
</nav>

Loading…
Cancel
Save