summaryrefslogtreecommitdiff
path: root/vrsite/templates/page-change.tmpl
blob: 08310e58f3fc2a95b135661a0516b8e186e5a9ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{{define "page-change"}}
{{$c := .Change}}
<header class="filehead">
  <h1>{{$c.Row.Short}} <span class="meta">{{$c.Row.Flags}}</span></h1>
  <p class="meta">
    commit <code>{{$c.Row.CommitShort}}</code> · {{$c.Row.Author}} · {{$c.Row.When}}
    {{if $c.Row.Refs}} · <span class="refs">{{$c.Row.Refs}}</span>{{end}} ·
    <a href="{{.Href "files" }}">browse the tree here</a>
  </p>
</header>

<section>
  {{if $c.Desc}}<pre class="desc">{{$c.Desc}}</pre>{{else}}<p class="meta hint">(no description set)</p>{{end}}

  {{if $c.Parents}}
  <p class="meta">parents:
    {{range $c.Parents}}<a href="/change/{{.ID}}"><code>{{.Short}}</code></a> {{.Desc}} {{end}}
  </p>
  {{end}}

  <h2>Changed files <span class="meta">{{$c.Stat}}</span></h2>
  {{if $c.Files}}
  <table class="changed">
    <tbody>
    {{range $c.Files}}
      <tr><td class="st st-{{.Status}}">{{.Status}}</td>
          <td><a href="/code/{{.Path}}?rev={{$c.Row.ID}}">{{.Path}}</a></td></tr>
    {{end}}
    </tbody>
  </table>
  {{else}}<p class="meta hint">no file changes</p>{{end}}

  <h2>Notes recorded at this change <span class="meta">{{len .Notes}}</span></h2>
  <div class="notecols">{{range .Notes}}{{template "note" (dict "N" . "P" $)}}{{end}}</div>
  {{if not .Notes}}<p class="meta hint">nothing in the log was written while this change was checked out</p>{{end}}
</section>
{{end}}