summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-30 02:08:38 -0700
committerUnknwon <u@gogs.io>2016-08-30 02:08:38 -0700
commit780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2 (patch)
tree1657d9fecdcf70d4e0067724344f531d608efb71 /templates/repo/view_list.tmpl
parent2a13f682e0fa039a610e7817495d87685f9632f2 (diff)
downloadgitea-780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2.tar.gz
gitea-780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2.zip
router/repo: code refactoring
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index a92123b865..19a18c1ca4 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -2,19 +2,19 @@
<thead>
<tr>
<th class="four wide">
- {{if .LastCommitUser}}
- <img class="ui avatar image img-12" src="{{.LastCommitUser.RelAvatarLink}}" />
- <a href="{{AppSubUrl}}/{{.LastCommitUser.Name}}"><strong>{{.LastCommit.Author.Name}}</strong></a>
+ {{if .LatestCommitUser}}
+ <img class="ui avatar image img-12" src="{{.LatestCommitUser.RelAvatarLink}}" />
+ <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></a>
{{else}}
- <img class="ui avatar image img-12" src="{{AvatarLink .LastCommit.Author.Email}}" />
- <strong>{{.LastCommit.Author.Name}}</strong>
+ <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/{{.LastCommit.ID}}" rel="nofollow">{{ShortSha .LastCommit.ID.String}}</a>
- <span class="grey has-emoji">{{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}}</span>
+ <a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}" rel="nofollow">{{ShortSha .LatestCommit.ID.String}}</a>
+ <span class="grey has-emoji">{{RenderCommitMessage false .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}}</span>
</th>
<th class="nine wide">
</th>
- <th class="three wide text grey right age">{{TimeSince .LastCommit.Author.When $.Lang}}</th>
+ <th class="three wide text grey right age">{{TimeSince .LatestCommit.Author.When $.Lang}}</th>
</tr>
</thead>
<tbody>