mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-18 23:54:42 +01:00
3ab580c8d6
* Add branch overiew page * fix changed method name on sub menu * remove unused code
15 lines
699 B
Go HTML Template
15 lines
699 B
Go HTML Template
<div class="ui segment sub-menu">
|
|
<div class="ui two horizontal center link list">
|
|
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo)}}
|
|
<div class="item{{if .PageIsCommits}} active{{end}}">
|
|
<a href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr "repo.commits"}}</a>
|
|
</div>
|
|
{{end}}
|
|
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo) }}
|
|
<div class="item{{if .PageIsBranches}} active{{end}}">
|
|
<a href="{{.RepoLink}}/branches/"><i class="octicon octicon-git-branch"></i> <b>{{.BrancheCount}}</b> {{.i18n.Tr "repo.branches"}}</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|