Add contextual blog menu

pull/371/head
Matt Baer 4 years ago
parent cef51a7797
commit 9d0ba2bed4
  1. 25
      less/core.less
  2. 5
      templates/user/collection.tmpl
  3. 4
      templates/user/include/nav.tmpl
  4. 5
      templates/user/stats.tmpl

@ -10,6 +10,8 @@
@proSelectedCol: #71D571;
@textLinkColor: rgb(0, 0, 238);
@accent: #767676;
body {
font-family: @serifFont;
font-size-adjust: 0.5;
@ -1565,3 +1567,26 @@ div.row {
pre.code-block {
overflow-x: auto;
}
#org-nav {
font-family: @sansFont;
font-size: 1.1em;
color: #888;
em, strong {
color: #000;
}
&+h1 {
margin-top: 0.5em;
}
a:link, a:visited, a:hover {
color: @accent;
}
a:first-child {
margin-right: 0.25em;
}
a.coll-name {
font-weight: bold;
margin-left: 0.25em;
}
}

@ -20,7 +20,10 @@ textarea.section.norm {
{{if .Silenced}}
{{template "user-silenced"}}
{{end}}
<h1>Customize {{.DisplayTitle}}</h1>
{{template "collection-breadcrumbs" .}}
<h1>Customize</h1>
{{template "collection-nav" (dict "Alias" .Alias "Path" .Path "SingleUser" .SingleUser)}}

@ -1,3 +1,7 @@
{{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}}
{{define "collection-nav"}}
<header class="admin">
<nav class="pager">

@ -20,7 +20,10 @@ td.none {
{{if .Silenced}}
{{template "user-silenced"}}
{{end}}
<h1 id="posts-header">{{if .Collection}}{{.Collection.DisplayTitle}} {{end}}Stats</h1>
{{template "collection-breadcrumbs" .}}
<h1 id="posts-header">Stats</h1>
{{if .Collection}}
{{template "collection-nav" (dict "Alias" .Collection.Alias "Path" .Path "SingleUser" .SingleUser)}}

Loading…
Cancel
Save