Download this file
| 1 | {{define "head"}} |
| 2 | {{/* The scriptless half of the status page. rastrillo's shim polls the |
| 3 | fragment when it is running; with scripting off, this meta refresh |
| 4 | is what advances the page instead — and rastrillo's StatusPage |
| 5 | 303s to the finished sheet, so the refresh is also what carries a |
| 6 | scriptless visitor to their import. |
| 7 | |
| 8 | Emitted ONLY while the job is running. On a finished or failed page |
| 9 | it would reload forever, which is the one way this element goes |
| 10 | wrong. */}} |
| 11 | {{if .Data.Running}} |
| 12 | <noscript><meta http-equiv="refresh" content="{{.Data.PollSeconds}}"></noscript> |
| 13 | {{end}} |
| 14 | {{end}} |
| 15 | |
| 16 | {{define "content"}} |
| 17 | <header rst-page-header> |
| 18 | <div rst-page-header-titles> |
| 19 | <h1>Importing a spreadsheet</h1> |
| 20 | <p rst-page-header-sub>This page keeps itself up to date. The sheet opens |
| 21 | as soon as the import finishes.</p> |
| 22 | </div> |
| 23 | </header> |
| 24 | |
| 25 | {{template "job-status" .Data.Status}} |
| 26 | |
| 27 | <p><a href="/sheets">All sheets</a></p> |
| 28 | {{end}} |
| 29 | |