summaryrefslogtreecommitdiff
path: root/web/templates/frag-jj.tmpl
blob: 61040dcea4037798479477a18d76128cc878bc76 (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
{{/* jj query results. Live-only, so routes are absolute. */}}
{{define "jjrows"}}
{{if .Err}}<p class="err">{{.Err}}</p>{{end}}
{{if .Rows}}
<div class="jjlog">
  {{range .Rows}}
  {{if .Blank}}<div class="jjrow blank"><span class="graph">{{.Graph}}</span></div>
  {{else if .Op}}
  <div class="jjrow">
    <span class="graph">{{.Graph}}</span>
    <a class="id" href="{{$.Root}}jj?at_op={{.ID}}" title="run the commit log as of this operation">{{.Short}}</a>
    <span class="when">{{.When}}</span>
    <span class="who">{{.Author}}</span>
    <span class="desc">{{.Desc}}</span>
    <span class="flags">{{.End}}</span>
  </div>
  {{else}}
  <div class="jjrow">
    <span class="graph">{{.Graph}}</span>
    <a class="id" href="{{$.Root}}change/{{.ID}}" title="{{.ID}}">{{.Short}}</a>
    <code class="commit">{{.CommitShort}}</code>
    <span class="when">{{.When}}</span>
    <span class="who">{{.Author}}</span>
    {{if .Refs}}<span class="refs">{{.Refs}}</span>{{end}}
    {{if .Flags}}<span class="flags">{{.Flags}}</span>{{end}}
    <a class="desc" href="{{$.Root}}files?rev={{.ID}}" title="browse the tree at this change">{{if .Desc}}{{.Desc}}{{else}}(no description){{end}}</a>
  </div>
  {{end}}
  {{end}}
</div>
{{else if not .Err}}<p class="meta hint">no revisions matched</p>{{end}}
{{if .AtOp}}<p class="meta">as of operation <code>{{short .AtOp}}</code> · <a href="{{.Root}}jj?kind=op">back to the op log</a></p>{{end}}
{{end}}