From 0e271799f2ec744332761cd87fe0d96f4d9653e0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Apr 2017 17:13:53 -0400 Subject: Refactoring: rename and simplify pkg/tool functions --- templates/repo/branch_dropdown.tmpl | 2 +- templates/repo/commits_table.tmpl | 6 +++--- templates/repo/diff/page.tmpl | 4 ++-- templates/repo/release/list.tmpl | 2 +- templates/repo/view_list.tmpl | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl index 1a8c7aa8..26409707 100644 --- a/templates/repo/branch_dropdown.tmpl +++ b/templates/repo/branch_dropdown.tmpl @@ -4,7 +4,7 @@ {{if .IsViewBranch}}{{.i18n.Tr "repo.branch"}}{{else}}{{.i18n.Tr "repo.tree"}}{{end}}: - {{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}} + {{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSHA1 .BranchName}}{{end}} diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index a95cb824..e68dd76f 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -14,7 +14,7 @@ {{else if .IsDiffCompare}} - {{ShortSha .BeforeCommitID}} ... {{ShortSha .AfterCommitID}} + {{ShortSHA1 .BeforeCommitID}} ... {{ShortSHA1 .AfterCommitID}} {{end}} @@ -43,9 +43,9 @@
diff --git a/templates/repo/diff/page.tmpl b/templates/repo/diff/page.tmpl index 0a35a804..4d2f6bc1 100644 --- a/templates/repo/diff/page.tmpl +++ b/templates/repo/diff/page.tmpl @@ -28,12 +28,12 @@