|
|
@@ -1,48 +1,38 @@ |
|
|
|
<table id="repo-files-table" class="ui fixed single line table"> |
|
|
|
<thead> |
|
|
|
<tr class="commit-list"> |
|
|
|
<th class="four wide"> |
|
|
|
{{if .LatestCommitUser}} |
|
|
|
<img class="ui avatar image img-12" src="{{.LatestCommitUser.RelAvatarLink}}" /> |
|
|
|
{{if .LatestCommitUser.FullName}} |
|
|
|
<a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommitUser.FullName}}</strong></a> |
|
|
|
{{else}} |
|
|
|
<a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}</strong></a> |
|
|
|
{{end}} |
|
|
|
{{else}} |
|
|
|
{{if .LatestCommit.Author}} |
|
|
|
<img class="ui avatar image img-12" src="{{AvatarLink .LatestCommit.Author.Email}}" /> |
|
|
|
<strong>{{.LatestCommit.Author.Name}}</strong> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<a rel="nofollow" class="ui sha label {{if .LatestCommit.Signature}} isSigned {{if .LatestCommitVerification.Verified }} isVerified {{end}}{{end}}" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}"> |
|
|
|
{{ShortSha .LatestCommit.ID.String}} |
|
|
|
{{if .LatestCommit.Signature}} |
|
|
|
<div class="ui detail icon button"> |
|
|
|
{{if .LatestCommitVerification.Verified}} |
|
|
|
<i title="{{.LatestCommitVerification.Reason}}" class="lock green icon"></i> |
|
|
|
{{else}} |
|
|
|
<i title="{{$.i18n.Tr .LatestCommitVerification.Reason}}" class="unlock icon"></i> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
</a> |
|
|
|
<span class="grey has-emoji">{{RenderCommitMessage .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}} |
|
|
|
{{if IsMultilineCommitMessage .LatestCommit.Message}} |
|
|
|
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> |
|
|
|
<pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre> |
|
|
|
{{end}} |
|
|
|
{{template "repo/commit_status" .LatestCommitStatus}}</span> |
|
|
|
</th> |
|
|
|
<th class="nine wide"> |
|
|
|
</th> |
|
|
|
<th class="three wide text grey right age">{{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}}</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
{{/* |
|
|
|
{{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}} |
|
|
|
|
|
|
|
<td class="message collapsing has-emoji"> |
|
|
|
{{RenderCommitMessageLink $commit.Summary $.RepoLink (print $.RepoLink "/commit/" $commit.ID) $.Repository.ComposeMetas}} |
|
|
|
</td> |
|
|
|
*/}} |
|
|
|
|
|
|
|
<h4 class="ui top attached header"> |
|
|
|
{{ $n := len .TreeNames}} |
|
|
|
{{ $l := Subtract $n 1}} |
|
|
|
<span class="ui breadcrumb repo-path"><a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}">{{EllipsisString .Repository.Name 30}}</a>{{range $i, $v := .TreeNames}}<span class="divider">/</span>{{if eq $i $l}}<span class="active section">{{EllipsisString $v 30}}</span>{{else}}{{ $p := index $.Paths $i}}<span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span> |
|
|
|
|
|
|
|
<div class="ui right sub header"> |
|
|
|
Latest commit: |
|
|
|
<a rel="nofollow" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}"> |
|
|
|
<span class="grey has-emoji"> |
|
|
|
{{RenderCommitMessage .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}} |
|
|
|
{{if IsMultilineCommitMessage .LatestCommit.Message}} |
|
|
|
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> |
|
|
|
<pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre> |
|
|
|
{{end}} |
|
|
|
{{template "repo/commit_status" .LatestCommitStatus}} |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
<span style="margin-left: 1em;"> |
|
|
|
{{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</h4> |
|
|
|
<table id="repo-files-table" class="ui fixed single line attached table"> |
|
|
|
<tbody> |
|
|
|
{{if .HasParentPath}} |
|
|
|
<tr class="has-parent"> |
|
|
|
<td colspan="3"><i class="octicon octicon-mail-reply"></i><a href="{{EscapePound .BranchLink}}{{.ParentPath}}">..</a></td> |
|
|
|
<td colspan="2"><a href="{{EscapePound .BranchLink}}{{.ParentPath}}"><i class="octicon octicon-mail-reply"></i> ..</a></td> |
|
|
|
</tr> |
|
|
|
{{end}} |
|
|
|
{{range $item := .Files}} |
|
|
@@ -78,9 +68,6 @@ |
|
|
|
{{end}} |
|
|
|
</td> |
|
|
|
{{end}} |
|
|
|
<td class="message collapsing has-emoji"> |
|
|
|
{{RenderCommitMessageLink $commit.Summary $.RepoLink (print $.RepoLink "/commit/" $commit.ID) $.Repository.ComposeMetas}} |
|
|
|
</td> |
|
|
|
<td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td> |
|
|
|
</tr> |
|
|
|
{{end}} |
|
|
@@ -88,4 +75,4 @@ |
|
|
|
</table> |
|
|
|
{{if .ReadmeExist}} |
|
|
|
{{template "repo/view_file" .}} |
|
|
|
{{end}} |
|
|
|
{{end}} |