oficina / meet Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "head"}}{{if .Waiting}}<script defer src="{{asset "static/app-offer.js"}}"></script>
2<noscript><meta http-equiv="refresh" content="3"></noscript>{{end}}{{end}}
3{{define "content"}}
4{{template "page-header" dict "Title" .Title}}
5<div rst-box>
6{{if .Done}}
7<p>Return to the Calls app to join your meeting. You can close this tab.</p>
8{{else if .Expired}}
9<p>Go back to the meeting and choose Join in the app again.</p>
10<p><a href="/">Meetings</a></p>
11{{else if .Waiting}}
12{{/* The web's Join in the app (appOffer): this page waits for the app
13 to ask, then becomes the confirmation for it, here, where you are
14 signed in. app-offer.js opens the app once and asks every couple of
15 seconds; with no script the page refreshes itself every three. */}}
16<div id="app-offer" data-app="{{.AppURL}}" data-poll="{{.Poll}}">
17<p>Open the Calls app to join this meeting there as you. When the app shows a code, this page will ask you to check it.</p>
18<p><a id="open-app" href="{{.AppURL}}" rst-btn="primary lg">Open the Calls app</a></p>
19<p id="app-offer-status" role="status">Waiting for the app…</p>
20<p><a href="{{.BackHref}}">Back to the meeting</a></p>
21</div>
22{{else}}
23<p>Check that this code matches the one in your Calls app: <strong class="rst-mono">{{.Code}}</strong></p>
24{{if .Guest}}
25<p>Continue only if you just opened the Calls app on your own device. This lets the app join this meeting as your guest identity.</p>
26{{template "confirm-form" dict "Action" .Action "Label" "Continue as guest" "CancelHref" .CancelHref "CancelLabel" "Cancel"}}
27{{else}}
28<p>Continue only if you just started signing in from the Calls app on your own device. This gives that app access to Calls as the account shown above.</p>
29{{template "confirm-form" dict "Action" .Action "Label" "Sign in to Calls app" "CancelHref" "/" "CancelLabel" "Cancel"}}
30{{end}}
31{{end}}
32</div>
33{{end}}
34