summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-05 14:31:52 -0400
committerUnknwon <u@gogs.io>2015-09-05 14:31:52 -0400
commit119dec51f2ed764d004d32a5fc3006870d81291f (patch)
treea5ffceb9f4e12ef348dad58d7463d1f6726bdaed /templates/repo
parent46dce2d65311fa37f04acfb4516b0dcb8cfbde5c (diff)
downloadgitea-119dec51f2ed764d004d32a5fc3006870d81291f.tar.gz
gitea-119dec51f2ed764d004d32a5fc3006870d81291f.zip
Mirror repository should not allow fork
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/header.tmpl2
-rw-r--r--templates/repo/header_old.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index d95d9526e7..2f883cd704 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -29,7 +29,7 @@
{{.NumStars}}
</a>
</div>
- {{if not .IsBare}}
+ {{if .CanBeForked}}
<div class="ui labeled button" tabindex="0">
<a class="ui grey button {{if eq .OwnerID $.SignedUserID}}poping up{{end}}" {{if not (eq .OwnerID $.SignedUserID)}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" data-position="top center" data-variation="tiny"{{end}}>
<i class="icon octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}}
diff --git a/templates/repo/header_old.tmpl b/templates/repo/header_old.tmpl
index 0537cc0244..23a3e0888d 100644
--- a/templates/repo/header_old.tmpl
+++ b/templates/repo/header_old.tmpl
@@ -48,7 +48,7 @@
</button>
</a>
</li>
- {{if not .IsBare}}
+ {{if .CanBeForked}}
<li id="repo-header-fork">
<a id="repo-header-fork-btn" {{if or (not $.IsRepositoryAdmin) $.Owner.IsOrganization}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{end}}>
<button class="btn btn-gray text-bold btn-radius">