diff options
author | Unknwon <u@gogs.io> | 2017-04-06 17:13:53 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-04-06 17:13:53 -0400 |
commit | 0e271799f2ec744332761cd87fe0d96f4d9653e0 (patch) | |
tree | a49a9609b8b37e972a60b505b2e3900922e55497 /templates/repo/view_list.tmpl | |
parent | 3c0de1713367ffecfe4606ad0553a550f568e74d (diff) |
Refactoring: rename and simplify pkg/tool functions
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index f532dd74..1b7ae9e0 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -9,7 +9,7 @@ <img class="ui avatar image img-12" src="{{AvatarLink .LatestCommit.Author.Email}}" /> <strong>{{.LatestCommit.Author.Name}}</strong> {{end}} - <a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}" rel="nofollow">{{ShortSha .LatestCommit.ID.String}}</a> + <a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}" rel="nofollow">{{ShortSHA1 .LatestCommit.ID.String}}</a> <span class="grey has-emoji">{{RenderCommitMessage false .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}}</span> </th> <th class="nine wide"> @@ -32,9 +32,9 @@ <span class="octicon octicon-file-submodule"></span> {{$refURL := $commit.RefURL AppUrl $.BranchLink}} {{if $refURL}} - <a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a> + <a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSHA1 $commit.RefID}}</a> {{else}} - {{$entry.Name}} @ {{ShortSha $commit.RefID}} + {{$entry.Name}} @ {{ShortSHA1 $commit.RefID}} {{end}} </td> {{else}} @@ -44,7 +44,7 @@ </td> {{end}} <td class="message collapsing has-emoji"> - <a rel="nofollow" class="ui sha label" href="{{$.RepoLink}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a> + <a rel="nofollow" class="ui sha label" href="{{$.RepoLink}}/commit/{{$commit.ID}}">{{ShortSHA1 $commit.ID.String}}</a> {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}} </td> <td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td> |