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
This commit is contained in:
parent
f821dbaac4
commit
603839fda7
2 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue