{{template "app-header" .}}
{{icon "chevron-left"}}

Sessions: {{.RepoName}}

{{if .Sessions}}
{{range $i, $s := .Sessions}} {{/* Rows are newest-first, so the next-older session is index+1. The oldest row has no older neighbour to compare against. */}} {{end}}
Session IDBranchModeModelFilesStatusCommentsDurationStarted AtAction
Session: {{truncate 30 $s.SessionID}} {{$s.GitBranch}} {{if $s.ReviewMode}}{{$s.ReviewMode}}{{else}}-{{end}} {{$s.Model}} {{$s.FileCount}} {{if $s.Aborted}}aborted{{else if $s.Legacy}}legacy{{else}}{{$s.TerminalState}}{{end}} {{if $s.CommentCount}}{{$s.CommentCount}}{{else}}-{{end}} {{formatDuration $s.DurationSec}} {{formatTime $s.Timestamp}}{{if lt (add $i 1) (len $.Sessions)}}{{$prev := index $.Sessions (add $i 1)}}Compare{{else}}-{{end}}
{{template "pager" (dict "prefix" "sessions" "label" "Session pages")}} {{else}}

No sessions found for this repository.

{{end}}
{{define "breadcrumbs"}}/{{.RepoName}}{{end}}