mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
b687707014
* Add the tag list page to the release page * Add the tags list view * Add the delete tag way on ui * Not delete tag and clear message when delete a release Signed-off-by: a1012112796 <1012112796@qq.com> * Apply suggestions from code review Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * fix ui * Add to header * ui * permission * ui * Update options/locale/locale_en-US.ini Co-authored-by: Lauris BH <lauris@nix.lv> * tweaks * monospace commit hashes * Add read permission check * fix permission * fix nit * Update web_src/less/_base.less Co-authored-by: silverwind <me@silverwind.io> * ui fixes * title tweaks * fix lint * fix test * fix test and some ui nits * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: silverwind <me@silverwind.io>
46 lines
2.1 KiB
Cheetah
46 lines
2.1 KiB
Cheetah
<div class="ui segments repository-summary{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) .LanguageStats }} repository-summary-language-stats{{end}}">
|
|
<div class="ui segment sub-menu repository-menu">
|
|
<div class="ui two horizontal center link list">
|
|
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}}
|
|
<div class="item{{if .PageIsCommits}} active{{end}}">
|
|
<a class="ui" href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}">{{svg "octicon-history"}} <b>{{.CommitsCount}}</b> {{.i18n.Tr (TrN .i18n.Lang .CommitsCount "repo.commit" "repo.commits") }}</a>
|
|
</div>
|
|
<div class="item{{if .PageIsBranches}} active{{end}}">
|
|
<a class="ui" href="{{.RepoLink}}/branches/">{{svg "octicon-git-branch"}} <b>{{.BranchesCount}}</b> {{.i18n.Tr (TrN .i18n.Lang .BranchesCount "repo.branch" "repo.branches") }}</a>
|
|
</div>
|
|
{{if $.Permission.CanRead $.UnitTypeCode}}
|
|
<div class="item">
|
|
<a class="ui" href="{{.RepoLink}}/tags">{{svg "octicon-tag"}} <b>{{.NumReleases}}</b> {{.i18n.Tr (TrN .i18n.Lang .NumReleases "repo.release" "repo.releases") }}</a>
|
|
</div>
|
|
{{end}}
|
|
<div class="item">
|
|
<span class="ui">{{svg "octicon-database"}} <b>{{SizeFmt .Repository.Size}}</b></span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) .LanguageStats }}
|
|
<div class="ui segment sub-menu language-stats-details" style="display: none">
|
|
<div class="ui horizontal center link list">
|
|
{{range .LanguageStats}}
|
|
<div class="item">
|
|
<i class="color-icon" style="background-color: {{ .Color }}"></i>
|
|
<span class="ui"><b>
|
|
{{if eq .Language "other" }}
|
|
{{ $.i18n.Tr "repo.language_other" }}
|
|
{{else}}
|
|
{{ .Language }}
|
|
{{end}}
|
|
</b> {{ .Percentage }}%</span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<a class="ui segment language-stats">
|
|
{{range .LanguageStats}}
|
|
<div class="bar" style="width: {{ .Percentage }}%; background-color: {{ .Color }}"> </div>
|
|
{{end}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|