log.page.tmpl

 1{{template "base" .}}
 2
 3{{define "title"}}commits - {{.Repo.RepoName}}@{{.RevData.Name}}{{end}}
 4{{define "meta"}}{{end}}
 5
 6{{define "content"}}
 7  <div class="commit-list">
 8    <div class="commit-list__count"><span class="font-bold">({{.NumCommits}})</span> commits</div>
 9    {{range .Logs}}
10      <div class="commit-item">
11        <div class="commit-item__header">
12          <div class="commit-item__content">
13            <div class="commit-item__message"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-git-commit-vertical-icon lucide-git-commit-vertical"><path d="M12 3v6"/><circle cx="12" cy="12" r="3"/><path d="M12 15v6"/></svg><a href="{{.URL}}">{{.SummaryStr}}</a></div>
14            <div class="commit-item__meta">
15              <span class="font-bold">{{.AuthorStr}}</span>
16              <span>&nbsp;&centerdot;&nbsp;</span>
17              <span>{{.WhenStr}}</span>
18            </div>
19          </div>
20
21          <div class="commit-item__actions">
22            <a href="{{.URL}}" class="commit-item__hash">{{.ShortID}}</a>
23            {{if .Refs}}
24            <div class="commit-item__refs">
25              {{range .Refs}}
26                <span class="commit-item__ref">
27                  {{if .URL}}
28                    <a href="{{.URL}}">{{.Refspec}}</a>
29                  {{else}}
30                    {{.Refspec}}
31                  {{end}}
32                </span>
33              {{end}}
34            </div>
35            {{end}}
36          </div>
37        </div>
38      </div>
39    {{end}}
40  </div>
41{{end}}