work on #1961
parent
c9b65f0fdc
commit
134d8e7681
File diff suppressed because one or more lines are too long
@ -1,6 +1,8 @@ |
|||||||
<div class="ui compact small menu"> |
<div class="ui compact small menu"> |
||||||
|
{{if not .CommitsCount}} |
||||||
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues">{{.i18n.Tr "repo.issues"}}</a> |
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues">{{.i18n.Tr "repo.issues"}}</a> |
||||||
<a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls">{{.i18n.Tr "repo.pulls"}}</a> |
<a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls">{{.i18n.Tr "repo.pulls"}}</a> |
||||||
|
{{end}} |
||||||
<a class="{{if .PageIsLabels}}active{{end}} item" href="{{.RepoLink}}/labels">{{.i18n.Tr "repo.labels"}}</a> |
<a class="{{if .PageIsLabels}}active{{end}} item" href="{{.RepoLink}}/labels">{{.i18n.Tr "repo.labels"}}</a> |
||||||
<a class="{{if .PageIsMilestones}}active{{end}} item" href="{{.RepoLink}}/milestones">{{.i18n.Tr "repo.milestones"}}</a> |
<a class="{{if .PageIsMilestones}}active{{end}} item" href="{{.RepoLink}}/milestones">{{.i18n.Tr "repo.milestones"}}</a> |
||||||
</div> |
</div> |
@ -1,21 +1,21 @@ |
|||||||
{{if not .IsBareRepo}} |
{{if not .IsBareRepo}} |
||||||
<div class="ui {{if .IsRepositoryAdmin}}five{{else}}four{{end}} item menu"> |
<div class="ui {{if .IsRepositoryAdmin}}five{{else}}four{{end}} item menu"> |
||||||
<a class="item" href="{{.RepoLink}}/issues"> |
<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> |
<i class="icon octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui blue label">{{.Repository.NumOpenIssues}}</span> |
||||||
</a> |
</a> |
||||||
<a class="item" href="{{.RepoLink}}/pulls"> |
<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> |
<i class="icon octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui blue label">{{.Repository.NumOpenPulls}}</span> |
||||||
</a> |
</a> |
||||||
<a class="item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"> |
<a class="item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"> |
||||||
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui blue label">{{.CommitsCount}}</span> |
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui blue label">{{.CommitsCount}}</span> |
||||||
</a> |
</a> |
||||||
<a class="item" href="{{.RepoLink}}/releases"> |
<a class="item" href="{{.RepoLink}}/releases"> |
||||||
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui blue label">{{.Repository.NumTags}}</span> |
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui blue label">{{.Repository.NumTags}}</span> |
||||||
</a> |
</a> |
||||||
{{if .IsRepositoryAdmin}} |
{{if .IsRepositoryAdmin}} |
||||||
<a class="item" href="{{.RepoLink}}/settings"> |
<a class="item" href="{{.RepoLink}}/settings"> |
||||||
<i class="icon octicon octicon-tools"></i> {{.i18n.Tr "repo.settings"}} |
<i class="icon octicon octicon-tools"></i> {{.i18n.Tr "repo.settings"}} |
||||||
</a> |
</a> |
||||||
{{end}} |
{{end}} |
||||||
</div> |
</div> |
||||||
{{end}} |
{{end}} |
Loading…
Reference in new issue