#1206 does not allow fork bare repo

This commit is contained in:
Unknwon
2015-09-01 11:57:02 -04:00
parent 398569f6f8
commit 670ade9a61
3 changed files with 12 additions and 1 deletions

View File

@@ -48,6 +48,7 @@
</button>
</a>
</li>
{{if not .IsBare}}
<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">
@@ -57,6 +58,7 @@
</a>
</li>
{{end}}
</ul>
</div>
</div>