2015-11-15 20:41:36 +01:00
|
|
|
{{if not .IsBareRepo}}
|
2015-11-26 02:10:25 +01:00
|
|
|
<div class="ui secondary pointing menu navbar">
|
|
|
|
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">
|
|
|
|
<i class="icon octicon octicon-code"></i> {{.i18n.Tr "repo.code"}}
|
|
|
|
</a>
|
2015-11-16 16:14:12 +01:00
|
|
|
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues">
|
2015-11-26 02:10:25 +01:00
|
|
|
<i class="icon octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui blue small label">{{.Repository.NumOpenIssues}}</span>
|
2015-11-16 16:14:12 +01:00
|
|
|
</a>
|
|
|
|
<a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls">
|
2015-11-26 02:10:25 +01:00
|
|
|
<i class="icon octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui blue small label">{{.Repository.NumOpenPulls}}</span>
|
2015-11-16 16:14:12 +01:00
|
|
|
</a>
|
2015-11-16 17:16:52 +01:00
|
|
|
<a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}">
|
2015-11-26 02:10:25 +01:00
|
|
|
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui blue small label">{{.CommitsCount}}</span>
|
2015-11-16 16:14:12 +01:00
|
|
|
</a>
|
2015-11-16 17:16:52 +01:00
|
|
|
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases">
|
2015-11-26 02:10:25 +01:00
|
|
|
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui blue small label">{{.Repository.NumTags}}</span>
|
|
|
|
</a>
|
|
|
|
<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki">
|
|
|
|
<i class="icon octicon octicon-book"></i> {{.i18n.Tr "repo.wiki"}}
|
2015-11-16 16:14:12 +01:00
|
|
|
</a>
|
|
|
|
{{if .IsRepositoryAdmin}}
|
2015-11-16 17:16:52 +01:00
|
|
|
<a class="{{if .PageIsSettings}}active{{end}} item" href="{{.RepoLink}}/settings">
|
2015-11-16 16:14:12 +01:00
|
|
|
<i class="icon octicon octicon-tools"></i> {{.i18n.Tr "repo.settings"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2015-11-15 20:41:36 +01:00
|
|
|
</div>
|
|
|
|
{{end}}
|