this repo has no description
1<html>
2{{ template "layouts/head" . }}
3
4 {{ template "layouts/repo-header" . }}
5 <body>
6 {{ template "layouts/nav" . }}
7 <main>
8 <section class="commit">
9 <pre>{{- .commit.Message -}}</pre>
10 <div class="commit-info">
11 {{ .commit.Author.Name }} <a href="mailto:{{ .commit.Author.Email }}" class="commit-email">{{ .commit.Author.Email}}</a>
12 <div>{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
13 </div>
14
15 <div>
16 <strong>commit</strong>
17 <p><a href="/{{ .name }}/commit/{{ .commit.This }}" class="commit-hash">
18 {{ .commit.This }}
19 </a>
20 </p>
21 </div>
22
23 {{ if .commit.Parent }}
24 <div>
25 <strong>parent</strong>
26 <p><a href="/{{ .name }}/commit/{{ .commit.Parent }}" class="commit-hash">
27 {{ .commit.Parent }}
28 </a></p>
29 </div>
30
31 {{ end }}
32 <div class="diff-stat">
33 <div>
34 {{ .stat.FilesChanged }} files changed,
35 {{ .stat.Insertions }} insertions(+),
36 {{ .stat.Deletions }} deletions(-)
37 </div>
38 <div>
39 <br>
40 <strong>jump to</strong>
41 {{ range .diff }}
42 <ul>
43 <li><a href="#{{ .Name.New }}">{{ .Name.New }}</a></li>
44 </ul>
45 {{ end }}
46 </div>
47 </div>
48 </section>
49 <section>
50 {{ $repo := .name }}
51 {{ $this := .commit.This }}
52 {{ $parent := .commit.Parent }}
53 {{ range .diff }}
54 <div id="{{ .Name.New }}">
55 <div class="diff">
56 {{ if .IsNew }}
57 <span class="diff-type">A</span>
58 {{ end }}
59 {{ if .IsDelete }}
60 <span class="diff-type">D</span>
61 {{ end }}
62 {{ if not (or .IsNew .IsDelete) }}
63 <span class="diff-type">M</span>
64 {{ end }}
65 {{ if .Name.Old }}
66 <a href="/{{ $repo }}/blob/{{ $parent }}/{{ .Name.Old }}">{{ .Name.Old }}</a>
67 {{ if .Name.New }}
68 →
69 <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>
70 {{ end }}
71 {{ else }}
72 <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>
73 {{- end -}}
74 {{ if .IsBinary }}
75 <p>Not showing binary file.</p>
76 {{ else }}
77 <pre>
78 {{- range .TextFragments -}}
79 <p>{{- .Header -}}</p>
80 {{- range .Lines -}}
81 {{- if eq .Op.String "+" -}}
82 <span class="diff-add">{{ .String }}</span>
83 {{- end -}}
84 {{- if eq .Op.String "-" -}}
85 <span class="diff-del">{{ .String }}</span>
86 {{- end -}}
87 {{- if eq .Op.String " " -}}
88 <span class="diff-noop">{{ .String }}</span>
89 {{- end -}}
90 {{- end -}}
91 {{- end -}}
92 {{- end -}}
93 </pre>
94 </div>
95 </div>
96 {{ end }}
97 </section>
98 </main>
99 </body>
100</html>