diff options
author | Lauris BH <lauris@nix.lv> | 2019-01-24 12:22:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 12:22:27 +0200 |
commit | cd83c2ca051f9d6a3f7b2842e19aaa2c069cf769 (patch) | |
tree | 5d8776f684c13436814ca8581c61c7c9e8237696 /templates/repo/home.tmpl | |
parent | ec31ee1c1cd028dc59292e19d4b1c9dd954ba364 (diff) | |
download | gitea-cd83c2ca051f9d6a3f7b2842e19aaa2c069cf769.tar.gz gitea-cd83c2ca051f9d6a3f7b2842e19aaa2c069cf769.zip |
Fix topics saving internal error and disable for archived repos (#5821)
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 6133464549..5e07f0f39d 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -25,9 +25,9 @@ </div> <div class="ui repo-topic" id="repo-topic"> {{range .Topics}}<a class="ui green basic label topic" style="cursor:pointer;" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}} - {{if .Permission.IsAdmin}}<a id="manage_topic" style="cursor:pointer;margin-left:10px;">{{.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<a id="manage_topic" style="cursor:pointer;margin-left:10px;">{{.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}} </div> - {{if .Permission.IsAdmin}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} <div class="ui repo-topic-edit grid form segment error" id="topic_edit" style="display:none"> <div class="fourteen wide column"> <div class="field"> |