all repos

mugit @ 7b26905

🐮 git server that your cow will love

mugit/web/templates/repo_index.html (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
ui: add ui, 4 months ago
1
{{ define "repo_index" }}
2
<!DOCTYPE html>
3
<html>
4
  <head>
5
    {{ template "head" . }}
6
    <title>{{ .name }} &mdash; {{ .meta.Title }}</title>
7
  </head>
8
  <body>
9
    {{ template "repo_header" . }}
10
11
    <main>
12
      {{ $repo := .name }}
13
14
      <section class="repo-index">
15
        <div class="repo-index-main">
16
          {{ range .commits }}
17
          <div class="box">
18
            <div>
19
              <a href="/{{ $repo }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a>
20
              &mdash; {{ .Author.Name }}
21
              <span class="commit-date commit-info">{{ .Author.When.Format "Mon, 02 Jan 2006" }}</span>
22
            </div>
23
            <div>{{ commitSummary .Message }}</div>
24
          </div>
25
          {{ end }}
26
        </div>
27
28
        <aside class="repo-index-side">
29
          <div class="box">
30
            <strong>clone</strong>
31
            <pre>{{- /**/ -}}
32
https://{{ .servername }}/{{ .name }}
33
git@{{ .servername }}:{{ .name }}
34
{{- /**/ -}}</pre>
35
          </div>
36
        </aside>
37
      </section>
38
39
      {{- if .readme }}
40
      <article class="readme">
41
        {{- .readme -}}
42
      </article>
43
      {{- end -}}
44
    </main>
45
  </body>
46
</html>
47
{{ end }}