Add link to Posts in user backend pages when chorus

This provides easy navigation to the logged in user's posts, since
there's no direct link to their blog otherwise.

Ref T681
pull/157/head
Matt Baer 5 years ago
parent f821dbaac4
commit 603839fda7
  1. 1
      templates/base.tmpl
  2. 1
      templates/user/include/header.tmpl

@ -36,6 +36,7 @@
</nav>
{{end}}
<nav class="tabs">
{{if and (and (not .SingleUser) .Chorus) .Username}}<a href="/{{.Username}}/"{{if eq .Path (printf "/%s/" .Username)}} class="selected"{{end}}>Posts</a>{{end}}
<a href="/about"{{if eq .Path "/about"}} class="selected"{{end}}>About</a>
{{if and (and (not .SingleUser) .LocalTimeline) .CanViewReader}}<a href="/read"{{if eq .Path "/read"}} class="selected"{{end}}>Reader</a>{{end}}
{{if and (and (and (not .SingleUser) .Chorus) .OpenRegistration) (not .Username)}}<a href="/signup"{{if eq .Path "/signup"}} class="selected"{{end}}>Sign up</a>{{end}}

@ -45,6 +45,7 @@
{{end}}
<nav class="tabs">
{{if .SimpleNav}}
{{if and (and (not .SingleUser) .Chorus) .Username}}<a href="/{{.Username}}/"{{if eq .Path (printf "/%s/" .Username)}} class="selected"{{end}}>Posts</a>{{end}}
<a href="/about">About</a>
{{if and (and (not .SingleUser) .LocalTimeline) .CanViewReader}}<a href="/read">Reader</a>{{end}}
{{if and (and (and (not .SingleUser) .Chorus) .OpenRegistration) (not .Username)}}<a href="/signup"{{if eq .Path "/signup"}} class="selected"{{end}}>Sign up</a>{{end}}

Loading…
Cancel
Save