all repos — legit @ 60e1092dbcfacb28b30d052b0f73d2249cd63a9d

fork of git.icyphox.sh/legit

templates/refs.html

{{ define "refs" }}
<html>
{{ template "head" . }}

  <header>
    <h1>{{ .meta.Title }}</h1>
    <h2>{{ .meta.Description }}</h2>
  </header>
  <body>
    {{ template "nav" . }}
    <main>
      <h3>branches</h3>
      {{ $name := .name }}
      {{ range .branches }}
      <p>
      <strong>{{ .Name.Short }}</strong>
      <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
      <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
      </p>
      {{ end }}
      {{ if .tags }}
      <h3>tags</h3>
      {{ range .tags }}
      <strong>{{ .Name }}</strong>
      <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
      <a href="/{{ $name }}/log/{{ .Name }}">log</a>
      {{ if .Message }}
      <pre>{{ .Message }}</pre>
      {{ end }}
      {{ end }}
      {{ end }}
    </main>
  </body>
</html>
{{ end }}