Show New Post button when Chorus, not SimpleNav

Ref T681
This commit is contained in:
Matt Baer 2019-08-09 13:59:55 -04:00
parent df56060f99
commit fda2929aed
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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>