oficina / sheets Public

Clone
git clone https://amadan.net/oficina/sheets

Plain git — no account needed to clone.

Download

Download this file

1{{define "content"}}
2<header rst-page-header>
3<div rst-page-header-titles>
4<h1>Import report</h1>
5<p rst-page-header-sub>What came across from the workbook, and what did not.</p>
6</div>
7<a rst-btn="primary" href="/sheets/{{.Data.Sheet.ID}}">Open the sheet</a>
8</header>
9
10{{/* Always shown, whatever the report holds: a report can only list
11 what it detected, so the page says what import carries at all
12 rather than let an empty list read as "everything". */}}
13<section rst-stack rst-section>
14<h2>What import carries</h2>
15<p>The first worksheet's values; formulas Sheets can calculate; number
16formats written as format codes; fill and text colours; bold, italic and
17alignment; column widths and row heights. Everything else stays in the
18original file.</p>
19</section>
20
21{{if .Data.OmittedWorksheets}}
22{{template "callout" (dict "Body" (printf "Only the first worksheet came across. %d other worksheet(s) were left out." .Data.OmittedWorksheets) "Tone" "warning")}}
23{{end}}
24
25<section rst-stack rst-section>
26<h2>What changed or was left out</h2>
27{{if .Data.Lines}}
28<ul rst-stack data-import-report>
29{{range .Data.Lines}}
30<li rst-stack>
31<p><strong>{{.Title}}</strong>: {{.Count}}</p>
32{{with .Detail}}<p>{{.}}</p>{{end}}
33{{if .Cells}}<p rst-field-help>Cells: {{range $i, $c := .Cells}}{{if $i}}, {{end}}{{$c}}{{end}}{{if .More}}, and {{.More}} more{{end}}.</p>{{end}}
34</li>
35{{end}}
36</ul>
37{{else}}
38<p>Nothing else was detected. Anything not listed under "What import
39carries" did not come across.</p>
40{{end}}
41</section>
42{{end}}
43