name:
template.commit.html
-rw-r--r--
2247
1<!DOCTYPE html>
2<html lang="en">
3
4<head>
5 {{ template "head" .RepoData.HeadData }}
6</head>
7
8<body>
9 <div class="content">
10 {{ template "metadata" .RepoData }}
11 <div class="commit-detail">
12 <r-cell span="16">
13 <div style="padding-bottom: 4px;">
14 <a href="{{ .RepoData.HeadData.BaseURL }}{{ .RepoData.Name }}/log.html">
15 <span>
16 ←
17 Commit log
18 </span>
19 </a>
20 </div>
21 </r-cell>
22 <r-grid columns="16" style="gap: 2px;">
23 <r-cell span="2">
24 <div class="ellipsis"><b>commit</b></div>
25 </r-cell>
26 <r-cell span="14">
27 <div class="mono ellipsis">
28 <a href="{{ .RepoData.HeadData.BaseURL }}{{ .RepoData.Name }}/commit/{{ .Hash }}/">
29 {{ .Hash }}
30 </a>
31 </div>
32 </r-cell>
33 <r-cell span="2">
34 <div class="ellipsis"><b>message</b></div>
35 </r-cell>
36 <r-cell span="14">
37 <div class="mono ellipsis">
38 {{ .Message }}
39 </div>
40 </r-cell>
41 <r-cell span="2">
42 <div class="ellipsis"><b>author</b></div>
43 </r-cell>
44 <r-cell span="14">
45 <div class="mono ellipsis">
46 {{ .Author }} <{{ .AuthorEmail }}>
47 </div>
48 </r-cell>
49 <r-cell span="2">
50 <div class="ellipsis"><b>date</b></div>
51 </r-cell>
52 <r-cell span="14">
53 <div class="mono ellipsis">
54 {{ .Date }}
55 </div>
56 </r-cell>
57 <r-cell span="2">
58 <div class="ellipsis"><b>stats</b></div>
59 </r-cell>
60 <r-cell span="14">
61 <div class="mono ellipsis">
62 {{ .FileChangeCount }} file(s) changed,
63 {{ .LinesAdded }} insertions(+),
64 {{ .LinesDeleted }} deletions(-)
65 </div>
66 </r-cell>
67 <r-cell span="2">
68 <div class="ellipsis"><b>files</b></div>
69 </r-cell>
70 <r-cell span="14">
71 <div class="mono ellipsis">
72 {{ range .FilesChanged }}
73 <div>{{ . }}</div>
74 {{ end }}
75 </div>
76 </r-cell>
77 </r-grid>
78 {{ .DiffContent }}
79 </div>
80 </div>
81</body>
82
83</html>