mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Mirror repository should not allow fork
This commit is contained in:
@@ -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"}}
|
||||
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user