2015-11-15 20:41:36 +01:00
|
|
|
{{if not .IsBareRepo}}
|
|
|
|
<div class="ui {{if .IsRepositoryAdmin}}five{{else}}four{{end}} item menu">
|
2015-11-16 16:14:12 +01:00
|
|
|
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues">
|
|
|
|
<i class="icon octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui blue label">{{.Repository.NumOpenIssues}}</span>
|
|
|
|
</a>
|
|
|
|
<a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls">
|
|
|
|
<i class="icon octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui blue label">{{.Repository.NumOpenPulls}}</span>
|
|
|
|
</a>
|
2015-11-16 17:16:52 +01:00
|
|
|
<a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}">
|
2015-11-16 16:14:12 +01:00
|
|
|
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui blue label">{{.CommitsCount}}</span>
|
|
|
|
</a>
|
2015-11-16 17:16:52 +01:00
|
|
|
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases">
|
2015-11-16 16:14:12 +01:00
|
|
|
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui blue label">{{.Repository.NumTags}}</span>
|
|
|
|
</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}}
|