From aa65761d81d3f33bdfee578c14bb2b0c7a6ca639 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 20 Aug 2015 20:18:49 +0800 Subject: new commits table --- templates/repo/commits_table.tmpl | 110 ++++++++++++++++++++++---------------- 1 file changed, 64 insertions(+), 46 deletions(-) (limited to 'templates/repo/commits_table.tmpl') diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 4c8141ab..7df7edce 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -1,48 +1,66 @@ -
-
-
- {{if not .IsDiffCompare}} - - {{end}} -

{{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}}

-
- - - - - - - - - - - {{ $username := .Username}} - {{ $reponame := .Reponame}} - {{$r := List .Commits}} - {{range $r}} - - - - - - - {{end}} - -
{{.i18n.Tr "repo.commits.author"}}SHA1{{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}
- {{if .User}} -    {{.Author.Name}} - {{else}} -    {{.Author.Name}} - {{end}} - {{SubStr .Id.String 0 10}} {{RenderCommitMessage .Summary $.RepoLink}}{{TimeSince .Author.When $.Lang}}
-
- {{if and (not .IsSearchPage) (not .IsDiffCompare)}} - +

+ {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} + {{if .PageIsCommits}} +
+
+ + +
+
+ {{end}} +

+
+ + + + + + + + + + + {{ $username := .Username}} + {{ $reponame := .Reponame}} + {{ $r:= List .Commits}} + {{range $r}} + + + + + + {{end}} + +
{{.i18n.Tr "repo.commits.author"}}SHA1{{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}
+ {{if .User}} +   {{.Author.Name}} + {{else}} +   {{.Author.Name}} + {{end}} + {{SubStr .Id.String 0 10}} {{RenderCommitMessage .Summary $.RepoLink}}{{TimeSince .Author.When $.Lang}}
+ +{{with .Page}} +{{if gt .TotalPages 1}} +
+ +
+{{end}} +{{end}} \ No newline at end of file -- cgit v1.2.3