oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "up-label"}}{{copy "conversation.title"}}{{end}}
2{{define "up"}}/conversation{{end}}
3{{define "title"}}{{copy "housekeeping.title"}}{{end}}
4{{define "content"}}{{with .Housekeeping}}
5<section equipo-notebook equipo-hk data-housekeeping data-work-live data-work-region id="housekeeping-view"{{if .Paused}} data-paused{{end}}>
6<header equipo-notebook-head equipo-hk-head><div><h1>{{copy "housekeeping.title"}}</h1><p>{{copy "housekeeping.lede"}}</p></div>
7<p equipo-hk-to-settings><a href="/conversation/settings/housekeeping" data-hk-settings-link>{{copy "housekeeping.settings_link"}}</a></p></header>
8{{if .Paused}}<p equipo-hk-paused role="status">{{copy "housekeeping.paused"}}</p>{{end}}
9<section equipo-hk-part aria-labelledby="hk-today"><h2 id="hk-today">{{copy "housekeeping.today"}}</h2>
10<ul equipo-hk-meters role="list">{{range .Meters}}<li equipo-conn-meter data-hk-meter><span>{{.Label}}</span><span equipo-conn-bar aria-hidden="true"><i data-w="{{.Percent}}"></i></span><span><b>{{.Used}}</b>{{with .Held}}, {{.}}{{end}}</span></li>{{end}}</ul></section>
11<section equipo-hk-part aria-labelledby="hk-actions"><h2 id="hk-actions">{{copy "housekeeping.actions"}}</h2>
12{{if .Actions}}<ol equipo-hk-list role="list">{{range .Actions}}<li equipo-hk-action data-action="{{.ID}}"{{if .Undone}} data-undone{{end}}{{if .Waiting}} data-waiting{{end}}><p equipo-hk-line>{{icon "check-circle"}}<span>{{.Line}}</span></p><p equipo-hk-meta><time datetime="{{.At}}">{{.When}}</time>{{with .Evidence}}<span>{{.}}</span>{{end}}{{with .State}}<span data-hk-state>{{.}}</span>{{end}}{{if .Undoable}}<span>{{.Until}}</span>{{end}}</p>{{if .Undoable}}<form method="post" action="/housekeeping/actions/{{.ID}}/undo" equipo-hk-undo><button equipo-link type="submit" data-hk-undo>{{copy "housekeeping.undo"}}</button></form>{{end}}</li>{{end}}</ol>{{else}}<p data-empty-state="housekeeping.actions_empty" equipo-hk-empty>{{copy "housekeeping.actions_empty"}}</p>{{end}}</section>
13{{if .Refusals}}<section equipo-hk-part aria-labelledby="hk-refusals"><h2 id="hk-refusals">{{copy "housekeeping.refusals"}}</h2><ol equipo-hk-list role="list">{{range .Refusals}}<li equipo-hk-action data-action="{{.ID}}" data-refused><p equipo-hk-line>{{icon "x-circle"}}<span>{{.Line}}</span></p><p equipo-hk-meta><time datetime="{{.At}}">{{.When}}</time><span data-hk-state>{{.State}}</span></p></li>{{end}}</ol></section>{{end}}
14<section equipo-hk-part aria-labelledby="hk-detectors"><h2 id="hk-detectors">{{copy "housekeeping.detectors"}}</h2>
15<ul equipo-hk-list role="list">{{$rev := .Revision}}{{range .Detectors}}<li equipo-hk-detector data-detector="{{.ID}}"{{if not .Enabled}} data-off{{end}}><p equipo-hk-line><span>{{.Name}}</span><span equipo-hk-switch>{{if .Enabled}}{{copy "housekeeping.on"}}{{else}}{{copy "housekeeping.off"}}{{end}}</span></p>{{with .Note}}<p equipo-hk-meta><span>{{.}}</span></p>{{end}}<form method="post" action="/housekeeping/detectors/{{.ID}}"><input type="hidden" name="revision" value="{{$rev}}">{{if .Enabled}}<input type="hidden" name="enabled" value="0"><button equipo-link type="submit" data-hk-detector-off>{{copy "housekeeping.turn_off"}}</button>{{else}}<input type="hidden" name="enabled" value="1"><button equipo-link type="submit" data-hk-detector-on>{{copy "housekeeping.turn_on"}}</button>{{end}}</form></li>{{end}}</ul></section>
16</section>
17{{end}}{{end}}
18