oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "content"}}
2<div rst-stack><a href="/settings" rel="up">{{copy "nav.settings"}}</a>
3<h1>{{copy "device.list"}}</h1>
4{{range .PersonDevices}}
5<section equipo-card rst-stack>
6<h2>{{.Label}}</h2>
7<dl>
8<dt>{{copy "device.created"}}</dt><dd>{{.CreatedAt.Format "2006-01-02T15:04:05Z07:00"}}</dd>
9<dt>{{copy "device.last_used"}}</dt><dd>{{if .LastUsedAt}}{{.LastUsedAt.Format "2006-01-02T15:04:05Z07:00"}}{{else}}{{copy "device.unused"}}{{end}}</dd>
10<dt>{{copy "device.expires"}}</dt><dd>{{.ExpiresAt.Format "2006-01-02T15:04:05Z07:00"}}</dd>
11</dl>
12{{if .RevokedAt}}<p>{{copy "device.revoked"}}</p>{{else}}
13<form method="post" action="/settings/devices/{{.ID}}/revoke" equipo-form>
14<input type="hidden" name="request_id" value="{{$.PersonDeviceRequest}}">
15<input type="hidden" name="revision" value="{{.Revision}}">
16<button rst-btn type="submit">{{copy "device.revoke"}}</button>
17</form>
18{{end}}
19</section>
20{{else}}<p>{{copy "device.empty"}}</p>{{end}}</div>
21{{end}}
22