oficina / home Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "title"}}{{.Data.Team.Name}} · Oficina{{end}}
2{{define "content"}}
3<header home-hub-head home-dashboard-head estilo-sky-host>
4{{template "estilo-sky" suiteSky}}
5<div home-dashboard-heading>
6<div>
7<h1>{{.Data.Team.Name}}</h1>
8<p home-hub-lede>Your recent work and what’s coming up.</p>
9{{if gt (len .Data.Teams) 1}}<nav home-team-nav aria-label="Teams">{{range .Data.Teams}}<a href="/?team={{.ID}}" {{if eq .ID $.Data.Team.ID}}aria-current="page"{{end}}>{{.Name}}</a>{{end}}</nav>{{end}}
10</div>
11<nav aria-label="Apps"><ul home-apps home-apps-compact>
12{{range .Data.Apps}}<li>{{if .Href}}<a home-app href="{{.Href}}">{{else}}<div home-app>{{end}}
13<img src="{{.Icon}}" alt="" width="28" height="28"><b>{{.Name}}</b>
14{{if not .Href}}<small>{{.Status}}</small>{{end}}
15{{if .Href}}</a>{{else}}</div>{{end}}</li>{{end}}
16</ul></nav>
17</div>
18</header>
19<div home-dashboard>
20<section home-recent-section aria-labelledby="recent-heading">
21<h2 id="recent-heading">Recent</h2>
22{{if .Data.Documents}}
23<fieldset home-recent-filter>
24<legend class="rst-sr-only">Filter recent documents by app</legend>
25<label><input class="rst-sr-only" type="radio" name="recent-app" value="all" checked>All</label>
26<label><input class="rst-sr-only" type="radio" name="recent-app" value="docs">Docs</label>
27<label><input class="rst-sr-only" type="radio" name="recent-app" value="sheets">Sheets</label>
28<label><input class="rst-sr-only" type="radio" name="recent-app" value="slides">Slides</label>
29</fieldset>
30<ul home-recent>{{range .Data.Documents}}
31<li home-document-app="{{.AppID}}"><a home-document-link href="{{.URL}}"><img src="{{.Icon}}" alt="" width="32" height="32"><div home-document-details><b><bdi>{{if .Title}}{{.Title}}{{else}}Untitled{{end}}</bdi></b><span>{{.App}} · <time datetime="{{.DateTime}}">{{.When}}</time></span></div></a></li>
32{{end}}</ul><p home-filter-empty>No documents from this app in the recent list.</p>{{else if .Data.DocumentsComplete}}<p>No recent documents yet. Open an app to get started.</p>{{else}}<p>Your recent documents will appear here when the apps are connected and available.</p>{{end}}
33<p home-dashboard-note>The 20 most recently updated documents across your connected apps. Open an app for its full list.</p>
34</section>
35<section aria-labelledby="agenda-heading">
36<h2 id="agenda-heading">Coming up</h2>
37<p home-dashboard-note>Today and the next seven days.</p>
38{{if .Data.Events}}<ul home-recent>{{range .Data.Events}}
39<li><a href="{{.URL}}"><time datetime="{{.DateTime}}">{{.When}}</time><b><bdi>{{if .Title}}{{.Title}}{{else}}Untitled event{{end}}</bdi></b><span><bdi>{{.Calendar}}</bdi></span></a></li>
40{{end}}</ul>{{else if .Data.EventsComplete}}<p>Nothing scheduled in this window.</p>{{else}}<p>Your agenda is unavailable right now.</p>{{end}}
41</section>
42</div>
43<section home-dashboard-sources aria-label="Connected apps">
44{{range .Data.Sources}}{{if .Status}}<p><b>{{.Source.Name}}</b>: {{.Status}} <a href="{{.Source.Origin}}/">Open {{.Source.Name}}</a></p>{{else if .Response.Truncated}}<p><a href="{{.Source.Origin}}/">More in {{.Source.Name}}</a></p>{{end}}{{end}}
45<p><a href="/?team={{.Data.Team.ID}}&amp;refresh=1">Refresh dashboard</a></p>
46</section>
47{{end}}
48