diff options
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 699e90461e..884910d1c5 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -44,14 +44,15 @@ </button> </a> </li> - <!-- <li id="repo-header-fork"> - <a id="repo-header-fork-btn" href="{{.RepoLink}}/action/fork"> + <li id="repo-header-fork"> + <a id="repo-header-fork-btn" {{if not .IsRepositoryOwner}} href="{{.RepoLink}}/action/fork"{{end}}> <button class="btn btn-gray text-bold btn-radius"> <i class="octicon octicon-repo-forked"></i>{{.i18n.Tr "repo.fork"}} <span class="num">{{.Repository.NumForks}}</span> </button> </a> - </li> --> + + </li> </ul> </div> </div>
\ No newline at end of file |