~bigbes/sr-ht-dolt

ref: c1d1a17e03e0de0fac1d17b1f8f75520fed6cff5 sr-ht-dolt/web/templates/commit.html -rw-r--r-- 1.1 KiB
c1d1a17e — Eugene Blikh mcpsrv: name the cursor a commit-log miss was asked about 5 days ago
                                                                                
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
{{define "content" -}}
<h2><a href="/~{{.Repo.OwnerName}}/{{.Repo.Name}}">~{{.Repo.OwnerName}}/{{.Repo.Name}}</a> &middot; commit</h2>
<p><code>{{.Summary.Hash}}</code></p>

<h4>Table changes</h4>
{{if .Summary.Tables}}
<table class="table">
  <thead>
    <tr><th>Table</th><th>Change</th><th>Rows +</th><th>Rows &minus;</th><th>Rows ~</th></tr>
  </thead>
  <tbody>
    {{range .Summary.Tables}}
    <tr>
      <td>
        <a href="/~{{$.Repo.OwnerName}}/{{$.Repo.Name}}/table/{{$.Summary.Hash}}/{{.Name}}">{{.Name}}</a>
      </td>
      <td>
        {{if .Added}}<span class="badge badge-success">added</span>{{end}}
        {{if .Dropped}}<span class="badge badge-danger">dropped</span>{{end}}
        {{if .SchemaChanged}}<span class="badge badge-warning">schema</span>{{end}}
        {{if and (not .Added) (not .Dropped) (not .SchemaChanged)}}<span class="badge badge-info">data</span>{{end}}
      </td>
      <td>{{.RowsAdded}}</td>
      <td>{{.RowsRemoved}}</td>
      <td>{{.RowsModified}}</td>
    </tr>
    {{end}}
  </tbody>
</table>
{{else}}
<p class="text-muted">No table changes.</p>
{{end}}
{{- end}}