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" .}}> <body {{template "body-attrs" .}}>
<div id="overlay"></div> <div id="overlay"></div>
<header> <header>
{{ if .SimpleNav }}<nav id="full-nav"> {{ if .Chorus }}<nav id="full-nav">
<div class="left-side"> <div class="left-side">
<h2><a href="/">{{.SiteName}}</a></h2> <h2><a href="/">{{.SiteName}}</a></h2>
</div> </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}} {{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 }} {{ end }}
</nav> </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> <a class="simple-btn" href="/new">New Post</a>
</div>{{end}} </div>{{end}}
</nav> </nav>

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

Loading…
Cancel
Save