mirror of https://github.com/gogits/gogs.git
Unknwon
9 years ago
28 changed files with 214 additions and 298 deletions
@ -1,27 +1,34 @@ |
|||||||
{{if not .IsBareRepo}} |
{{if not .IsBareRepo}} |
||||||
<div class="ui secondary pointing menu navbar"> |
<div class="ui tabs container"> |
||||||
|
<div class="ui tabular menu navbar"> |
||||||
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}"> |
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}"> |
||||||
<i class="icon octicon octicon-code"></i> {{.i18n.Tr "repo.code"}} |
<i class="icon octicon octicon-code"></i> {{.i18n.Tr "repo.code"}} |
||||||
</a> |
</a> |
||||||
<a class="{{if .PageIsIssueList}}active{{end}} 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 small label">{{.Repository.NumOpenIssues}}</span> |
<i class="icon octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui {{if eq 0 .Repository.NumOpenIssues}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenIssues}}</span> |
||||||
</a> |
</a> |
||||||
<a class="{{if .PageIsPullList}}active{{end}} 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 small label">{{.Repository.NumOpenPulls}}</span> |
<i class="icon octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui {{if eq 0 .Repository.NumOpenPulls}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenPulls}}</span> |
||||||
</a> |
</a> |
||||||
<a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"> |
<a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"> |
||||||
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui blue small label">{{.CommitsCount}}</span> |
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui {{if eq 0 .CommitsCount}}gray{{else}}blue{{end}} small label">{{.CommitsCount}}</span> |
||||||
</a> |
</a> |
||||||
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases"> |
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases"> |
||||||
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui blue small label">{{.Repository.NumTags}}</span> |
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui {{if eq 0 .Repository.NumTags}}gray{{else}}blue{{end}} small label">{{.Repository.NumTags}}</span> |
||||||
</a> |
</a> |
||||||
<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki"> |
<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki"> |
||||||
<i class="icon octicon octicon-book"></i> {{.i18n.Tr "repo.wiki"}} |
<i class="icon octicon octicon-book"></i> {{.i18n.Tr "repo.wiki"}} |
||||||
</a> |
</a> |
||||||
{{if .IsRepositoryAdmin}} |
{{if .IsRepositoryAdmin}} |
||||||
|
<div class="right menu"> |
||||||
<a class="{{if .PageIsSettings}}active{{end}} item" href="{{.RepoLink}}/settings"> |
<a class="{{if .PageIsSettings}}active{{end}} 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> |
||||||
|
</div> |
||||||
{{end}} |
{{end}} |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
<div class="ui tabs divider"></div> |
||||||
|
{{else}} |
||||||
|
<div class="ui divider"></div> |
||||||
{{end}} |
{{end}} |
Loading…
Reference in new issue