From 8d27ee6d9907d596feb1b9843e67d668d8f554e0 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 19 Aug 2020 18:20:26 -0400 Subject: [PATCH] Only show "New Post" button in coll. nav bar on Blogs page --- templates/user/collections.tmpl | 2 +- templates/user/include/nav.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/user/collections.tmpl b/templates/user/collections.tmpl index 64ab6a0..f371ce0 100644 --- a/templates/user/collections.tmpl +++ b/templates/user/collections.tmpl @@ -19,7 +19,7 @@ {{if .Title}}{{.Title}}{{else}}{{.Alias}}{{end}} {{if .IsPrivate}}private{{else}}{{.DisplayCanonicalURL}}{{end}} - {{template "collection-nav" (dict "Alias" .Alias "Path" $.Path "SingleUser" $.SingleUser)}} + {{template "collection-nav" (dict "Alias" .Alias "Path" $.Path "SingleUser" $.SingleUser "CanPost" true )}} {{if .Description}}

{{.Description}}

{{end}} diff --git a/templates/user/include/nav.tmpl b/templates/user/include/nav.tmpl index 6e208cb..057fc3c 100644 --- a/templates/user/include/nav.tmpl +++ b/templates/user/include/nav.tmpl @@ -6,7 +6,7 @@ {{if not .SingleUser}}