summaryrefslogtreecommitdiffstats
path: root/templates/repo/setting.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/setting.tmpl')
-rw-r--r--templates/repo/setting.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/setting.tmpl b/templates/repo/setting.tmpl
index f0f041dee8..99835640fc 100644
--- a/templates/repo/setting.tmpl
+++ b/templates/repo/setting.tmpl
@@ -88,6 +88,7 @@
Danger Zone
</div>
+ {{if not .Repository.IsMirror}}
<div class="panel-body">
<button type="button" class="btn btn-default pull-right" href="#transfer-repository-modal" data-toggle="modal">
Transfer ownership
@@ -137,6 +138,8 @@
</div>
</div>
</div>
+ {{end}}
+
<hr>
<div class="panel-body">
<button type="button" class="btn btn-default pull-right" href="#delete-repository-modal" data-toggle="modal">