From 9a12f678556ef05c3f1af8a222690ee0ade88296 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 23 Jan 2020 17:11:57 -0500 Subject: templates/repo/header: Move topics editor to header --- templates/repo/header.tmpl | 23 ++++++++++++++++++++--- templates/repo/home.tmpl | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index fb48ce3..f79a538 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -55,13 +55,30 @@ - -
+
{{range $.Topics}}{{.Name}}{{end}} {{if and $.Permission.IsAdmin (not .IsArchived)}}{{$.i18n.Tr "repo.topic.manage_topics"}}{{end}}
- + {{if and $.Permission.IsAdmin (not .IsArchived)}} + + {{end}}
{{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index b23e851..3cb9969 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -23,7 +23,7 @@ {{end}} -
+
{{range .Topics}}{{.Name}}{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.i18n.Tr "repo.topic.manage_topics"}}{{end}}
-- cgit v1.2.3