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

31 lines
1.0 KiB
Cheetah
Raw Normal View History

2022-05-11 21:38:20 +02:00
{{define "title"}}{{ .App.Manifest.Title }} - Arcad{{end}}
{{define "body"}}
<div class="app-wrapper" data-controller="app" data-app-frame-src="./{{ .App.Manifest.ID }}/">
<div class="app-header">
<div class="level is-marginless is-mobile">
<div class="level-left">
<a href="../" class="level-item button is-link is-small">
<svg class="icon">
<use xlink:href="#home"></use>
</svg>
</a>
</div>
<div class="level-right">
{{if .App.Manifest.Options.HighscoresEnabled}}
<a href="../highscores/{{ .App.Manifest.ID }}" class="level-item button is-link is-small">
<span>Classement</span>
<svg class="icon">
<use xlink:href="#trophy"></use>
</svg>
</a>
{{end}}
</div>
</div>
</div>
<iframe class="app-frame" data-target="app.frame"
scrolling="no" seamless="seamless"
data-action="beforeunload->app#onFrameBeforeUnload load->app#onFrameLoad">
</iframe>
</div>
{{end}}
{{template "base" .}}