diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 374f13af0f511..8f60d4c497e9a 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -298,8 +298,8 @@ func NewFuncMap() []template.FuncMap { } return false }, - "svg": func(icon string, size int) template.HTML { - return template.HTML(fmt.Sprintf(``, icon, size, size, icon)) + "svg": func(icon string, width int, height int) template.HTML { + return template.HTML(fmt.Sprintf(``, icon, width, height, icon)) }, }} } diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index c1ac8fb4890c9..7e9bee502afd1 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -21,44 +21,44 @@
{{.i18n.Tr "startpage.install_desc" | Str2html}} @@ -24,7 +24,7 @@
{{.i18n.Tr "startpage.platform_desc" | Str2html}} @@ -34,7 +34,7 @@
{{.i18n.Tr "startpage.lightweight_desc" | Str2html}} @@ -42,7 +42,7 @@
{{.i18n.Tr "startpage.license_desc" | Str2html}} diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl index 2dc93dbf8d1b9..6c688aa05bd37 100644 --- a/templates/org/header.tmpl +++ b/templates/org/header.tmpl @@ -9,11 +9,11 @@
{{.Org.Description}}
{{end}}{{svg "octicon-git-commit" 16}}{{ShortSha .Commit.ID.String}} · · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}
+{{svg "octicon-git-commit" 16 16}}{{ShortSha .Commit.ID.String}} · · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}
{{end}} {{end}} @@ -27,8 +27,8 @@ @@ -53,10 +53,10 @@{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}
{{else}} {{if .IsProtected}} - {{svg "octicon-shield-lock" 16}} + {{svg "octicon-shield-lock" 14 16}} {{end}} {{.Name}} -{{svg "octicon-git-commit" 16}}{{ShortSha .Commit.ID.String}} · · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}
+{{svg "octicon-git-commit" 16 16}}{{ShortSha .Commit.ID.String}} · · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}
{{end}}