all repos — legit @ 0793d8870465693ddcf99f09377bbe0f62c67907

Unnamed repository; edit this file 'description' to name the repository.

templates/repo.html (view raw)

 1{{ define "repo" }}
 2<!doctype html>
 3<html>
 4{{ template "head" . }}
 5
 6  <body>
 7    {{ template "repoheader" . }}
 8    {{ template "nav" . }}
 9    <main>
10      {{ $repo := .name }}
11      <div class="log">
12        {{ range .commits }}
13        <div>
14          <div><a href="/{{ $repo }}/commit/{{ .Commit.Hash.String }}" class="commit-hash">{{ slice .Commit.Hash.String 0 8 }}</a></div>
15          <pre>{{ .Commit.Message }}</pre>
16        </div>
17        <div class="commit-info">
18          {{ .Commit.Author.Name }} <a href="mailto:{{ .Commit.Author.Email }}" class="commit-email">{{ .Commit.Author.Email }}</a>
19          <div>{{ .Commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
20        </div>
21        {{ end }}
22      </div>
23{{- if .readme }}
24      <article class="readme">
25        {{- .readme -}}
26      </article>
27{{- end -}}
28
29      <div class="clone-url">
30      <strong>clone</strong>
31        <pre>
32git clone https://{{ .servername }}/{{ .name }}
33        </pre>
34      </div>
35    </main>
36  </body>
37</html>
38{{ end }}