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"}}{{template "settings-up" .}}{{end}}
2{{define "up-label"}}{{template "settings-up-label" .}}{{end}}
3{{define "title"}}{{copy "github.title"}}{{end}}
4{{define "content"}}
5<div equipo-settings-layout data-section="github">
6{{template "settings-nav" .}}
7<section equipo-settings-body equipo-settings-section id="github">
8<h1>{{copy "github.title"}}</h1>
9{{with .GitHub}}
10{{with .Notice}}<p role="status">{{.}}</p>{{end}}
11{{range .Rows}}<section equipo-sp-group data-forge-connection="{{.ID}}" data-state="{{.State}}">
12<h2>{{.Login}}</h2>
13{{range .Lines}}<p>{{.}}</p>{{end}}
14{{if .Cleanup}}<a rst-btn href="{{.SettingsURL}}" rel="noreferrer">{{copy "github.app_settings"}}</a>{{end}}
15{{if .RepositoriesURL}}<a rst-btn href="{{.RepositoriesURL}}" rel="noreferrer">{{copy "github.choose_repositories"}}</a>{{end}}
16{{if .Check}}<form method="post" action="/github/connect/check"><input type="hidden" name="id" value="{{.ID}}"><button rst-btn>{{copy "github.check_again"}}</button></form>{{end}}
17{{if .Confirm}}<form method="post" action="/github/connect/confirm"><input type="hidden" name="id" value="{{.ID}}"><button rst-btn="primary">{{copy "github.confirm"}}</button></form>{{end}}
18{{if .Disconnect}}<form method="post" action="/github/connect/disconnect"><input type="hidden" name="id" value="{{.ID}}"><button rst-btn>{{copy "github.disconnect"}}</button></form>{{end}}
19{{if .Reconnect}}<a rst-btn href="#github-start">{{copy "github.reconnect"}}</a>{{end}}
20</section>{{else}}{{if not .Manifest}}<p>{{copy "github.not_connected"}}</p>{{end}}{{end}}
21{{if .Manifest}}
22<p>{{copy "github.create_hint"}}</p>
23<form method="post" action="{{.ManifestURL}}"><input type="hidden" name="manifest" value="{{.Manifest}}"><button rst-btn="primary">{{copy "github.create_app"}}</button></form>
24{{else}}
25<form equipo-form method="post" action="/github/connect/start" id="github-start">
26<label for="github-account">{{copy "github.account"}}</label><input rst-input name="account" id="github-account" maxlength="39" pattern="[A-Za-z0-9][A-Za-z0-9-]*" required>
27<label for="github-account-type">{{copy "github.account_type"}}</label><select rst-input name="account_type" id="github-account-type"><option value="Organization">{{copy "github.organization"}}</option><option value="User">{{copy "github.personal_account"}}</option></select>
28<p>{{copy "github.create_hint"}}</p><button rst-btn="primary">{{copy "github.connect"}}</button>
29</form>
30{{end}}
31{{end}}
32</section></div>
33{{end}}
34