cadoles-arcad/template/layouts/captive_portal.html.tmpl

28 lines
993 B
Cheetah

{{define "title"}}Chargement en cours - Arcad{{end}}
{{define "body"}}
{{template "header" .}}
{{ $redirectUrl := "/captive?escape=1" }}
{{ if .IsAndroid }}
{{ $redirectUrl := "intent://arcadbox.local/captive?escape=1#Intent;scheme=http;end" }}
{{ end }}
<section class="home is-fullheight section">
<div class="container">
<div class="message is-info">
<div class="message-body">
<div class="content">
<p>Un instant s'il vous plaît, nous préparons votre espace...</p>
<p>Si la page ne se recharge pas automatiquement, <a id="homepage-link" href="{{ $redirectUrl }}" target="_blank">cliquez ici.</a></p>
</div>
</div>
</div>
</div>
</section>
{{end}}
{{define "head_style"}}
{{ $redirectUrl := "/captive?escape=1" }}
{{ if .IsAndroid }}
{{ $redirectUrl := "intent://arcadbox.local/captive?escape=1#Intent;scheme=http;end" }}
{{ end }}
<meta http-equiv="refresh" content="1;URL={{ $redirectUrl }}">
{{end}}
{{template "base" .}}