aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>