diff options
author | Unknwon <u@gogs.io> | 2015-09-05 14:31:52 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-05 14:31:52 -0400 |
commit | 119dec51f2ed764d004d32a5fc3006870d81291f (patch) | |
tree | a5ffceb9f4e12ef348dad58d7463d1f6726bdaed /templates/repo | |
parent | 46dce2d65311fa37f04acfb4516b0dcb8cfbde5c (diff) | |
download | gitea-119dec51f2ed764d004d32a5fc3006870d81291f.tar.gz gitea-119dec51f2ed764d004d32a5fc3006870d81291f.zip |
Mirror repository should not allow fork
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/header.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/header_old.tmpl | 2 |
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"> |