| 1 | {{define "title"}}{{.Title}}{{end}} |
| 2 | {{define "content"}} |
| 3 | <header rst-page-header> |
| 4 | <div rst-page-header-titles> |
| 5 | <h1>Imported</h1> |
| 6 | </div> |
| 7 | <a rst-btn="primary" href="/today">Go to today</a> |
| 8 | </header> |
| 9 | |
| 10 | {{/* Every number here is one somebody can act on, and each is named |
| 11 | rather than summed into "some events could not be imported". */}} |
| 12 | {{$items := list |
| 13 | (dict "Label" "Events added" "Value" (printf "%d" .Data.Result.Created)) |
| 14 | (dict "Label" "Skipped" "Value" (printf "%d" .Data.Result.Skipped))}} |
| 15 | {{template "detail-list" dict "Items" $items}} |
| 16 | |
| 17 | {{if .Data.Result.Floating}} |
| 18 | {{template "callout" dict "Tone" "warning" |
| 19 | "Title" "Some events carry no time zone" |
| 20 | "Body" "They were kept exactly as written, which means they read as the same wall-clock time wherever they are opened. On a shared calendar that can mean two people seeing two different moments. Editing one gives it your zone."}} |
| 21 | {{end}} |
| 22 | |
| 23 | {{if .Data.Result.ForeignRules}} |
| 24 | {{template "callout" dict "Tone" "info" |
| 25 | "Title" "Some repeat rules are outside what this app builds" |
| 26 | "Body" "They were stored exactly as they arrived and export unchanged, but their future occurrences are not drawn on the calendar. The event's own page shows the rule."}} |
| 27 | {{end}} |
| 28 | |
| 29 | {{if .Data.Result.Attendees}} |
| 30 | {{template "callout" dict "Tone" "info" |
| 31 | "Title" "Guests were not imported" |
| 32 | "Body" "This app does not model guests or invitations yet, so those lines were dropped. The events themselves came across intact."}} |
| 33 | {{end}} |
| 34 | |
| 35 | {{if .Data.Result.UnknownZones}} |
| 36 | {{template "callout" dict "Tone" "warning" |
| 37 | "Title" "Some time zones could not be resolved" |
| 38 | "Body" "Those events were placed in your own zone instead of being dropped. Check them: they may be an hour or two out."}} |
| 39 | <ul>{{range .Data.Result.UnknownZones}}<li class="rst-mono">{{.}}</li>{{end}}</ul> |
| 40 | {{end}} |
| 41 | {{end}} |
| 42 | |