aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-01-23 16:39:17 -0500
committerThedro Neely <thedroneely@gmail.com>2020-01-23 16:39:17 -0500
commitf5618e06d08047253285f51c9e8ebb1fcb957999 (patch)
treeb882526ed024a39c5b46fe598af461ab7afa619d /templates
parent490a892224306f6438656a9abcfa6c4c166f5404 (diff)
downloadgitea-templates-f5618e06d08047253285f51c9e8ebb1fcb957999.tar.gz
gitea-templates-f5618e06d08047253285f51c9e8ebb1fcb957999.tar.bz2
gitea-templates-f5618e06d08047253285f51c9e8ebb1fcb957999.zip
templates/repo/header: Move topics to header
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index a9a5de1..fb48ce3 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -56,6 +56,10 @@
</div>
+ <div class="ui" id="repo-topics">
+ {{range $.Topics}}<a class="ui repo-topic small label topic" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
+ {{if and $.Permission.IsAdmin (not .IsArchived)}}<a id="manage_topic">{{$.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}}
+ </div>