summaryrefslogtreecommitdiff
path: root/vrsite/templates/page-index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'vrsite/templates/page-index.tmpl')
-rw-r--r--vrsite/templates/page-index.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/vrsite/templates/page-index.tmpl b/vrsite/templates/page-index.tmpl
index 2c115cc..bd377ac 100644
--- a/vrsite/templates/page-index.tmpl
+++ b/vrsite/templates/page-index.tmpl
@@ -2,8 +2,10 @@
<header class="filehead">
<h1>{{.Site.Title}}</h1>
<p class="meta">
- {{len .Site.All}} files, {{len .Site.Order}} traced · {{len .Site.Notes}} notes ·
- change <code>{{short .Site.Change}}</code> · theme {{.Site.Theme.Name}}
+ {{len .Files}} files at <code title="{{.ChangeID}}">{{short .ChangeID}}</code> ·
+ {{len .Site.Order}} traced, {{len .Site.Notes}} notes
+ {{if or (eq .Scope "all") .ScopeEmpty}}<span class="away">across every change</span>{{else}}here{{end}} ·
+ theme {{.Site.Theme.Name}}
</p>
</header>
@@ -23,7 +25,9 @@
<tbody>
{{range .Site.Agents}}
<tr><td><span class="chip am{{.Bit}}">{{.Short}}</span></td>
- <td>{{.Model}}</td><td>{{.Reason}}</td><td><code>{{short .Session}}</code></td>
+ <td>{{.Model}}</td><td>{{.Reason}}</td>
+ <td>{{if and $.Live .Session}}<a href="{{$.Href "session" .Session}}" title="{{.Session}}"><code>{{short .Session}}</code></a>
+ {{else}}<code title="{{.Session}}">{{short .Session}}</code>{{end}}</td>
<td>{{.Reads}}</td><td>{{.Greps}}</td><td>{{.Notes}}</td></tr>
{{end}}
</tbody>