{{define "content" -}}
<h2><a href="/~{{.Repo.OwnerName}}/{{.Repo.Name}}">~{{.Repo.OwnerName}}/{{.Repo.Name}}</a> · 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 −</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}}