diff options
author | Thedro Neely <thedroneely@gmail.com> | 2020-08-30 17:54:27 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2020-09-06 00:14:05 -0400 |
commit | 10f027de65222224a095bb08b153b8cde619736e (patch) | |
tree | 6a7862a3d076c79e2bf5e69eac1e241afa1c3820 /templates/repo/header.tmpl | |
parent | 19cf0ea4389a632740e2f18769e7c0a483b60c68 (diff) | |
download | gitea-templates-10f027de65222224a095bb08b153b8cde619736e.tar.gz gitea-templates-10f027de65222224a095bb08b153b8cde619736e.tar.bz2 gitea-templates-10f027de65222224a095bb08b153b8cde619736e.zip |
templates: Start over
Use standard icon for favicon and avatar.
Use native font stack.
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 8606696..442f962 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -11,13 +11,13 @@ <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> <div class="divider"> / </div> <a href="{{$.RepoLink}}">{{.Name}}</a> + <small>{{SizeFmt .Size}}</small> {{if and .RelAvatarLink .IsPrivate}}<i class="mega-octicon octicon-lock"></i>{{end}} {{if .IsTemplate}}<i class="icon fa-copy"></i>{{end}} {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}} {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}</a></div>{{end}} {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}} {{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{SubStr .TemplateRepo.RelLink 1 -1}}</a></div>{{end}} - <small>{{SizeFmt .Size}}</small> </div> {{if not .IsBeingCreated}} <div class="repo-buttons"> @@ -100,7 +100,7 @@ </a> <a class="{{if .PageIsCommits}}active{{end}} item" - href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"> + href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{.Repository.DefaultBranch}}"> <i class="octicon octicon-clock"></i> {{.i18n.Tr "repo.commits"}} <span class="ui small label">{{or .CommitsCount "0"}}</span> |