2020-08-19 23:09:47 +02:00
|
|
|
{{define "collection-breadcrumbs"}}
|
|
|
|
{{if and .Collection (not .SingleUser)}}<nav id="org-nav"><a href="/me/c/">Blogs</a> / <a class="coll-name" href="/{{.Collection.Alias}}/">{{.Collection.DisplayTitle}}</a></nav>{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
2020-08-19 22:24:37 +02:00
|
|
|
{{define "collection-nav"}}
|
2020-08-20 00:19:28 +02:00
|
|
|
{{if not .SingleUser}}
|
2020-08-19 22:24:37 +02:00
|
|
|
<header class="admin">
|
|
|
|
<nav class="pager">
|
2020-08-20 00:20:26 +02:00
|
|
|
{{if .CanPost}}<a href="{{if .SingleUser}}/me/new{{else}}/#{{.Alias}}{{end}}" class="btn gentlecta">New Post</a>{{end}}
|
2020-08-19 22:24:37 +02:00
|
|
|
<a href="/me/c/{{.Alias}}" {{if and (hasPrefix .Path "/me/c/") (hasSuffix .Path .Alias)}}class="selected"{{end}}>Customize</a>
|
|
|
|
<a href="/me/c/{{.Alias}}/stats" {{if hasSuffix .Path "/stats"}}class="selected"{{end}}>Stats</a>
|
|
|
|
<a href="{{if .SingleUser}}/{{else}}/{{.Alias}}/{{end}}">View Blog →</a>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2020-08-20 00:19:28 +02:00
|
|
|
{{end}}
|
2020-08-19 22:24:37 +02:00
|
|
|
{{end}}
|