49 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-07-06 20:56:37 +02:00
component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openGraph *arn.OpenGraph, content string)
2017-06-01 15:38:08 +02:00
html(lang="en")
2016-10-29 01:11:25 +09:00
head
2017-07-06 21:38:19 +02:00
if openGraph != nil
title= openGraph.Tags["og:title"]
else
title= app.Config.Title
2017-07-06 20:56:37 +02:00
2016-11-03 13:11:00 +09:00
meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")
2017-06-17 14:15:33 +02:00
meta(name="theme-color", content=app.Config.Manifest.ThemeColor)
2017-07-06 20:33:46 +02:00
2017-07-06 20:56:37 +02:00
if openGraph != nil
for name, value := range openGraph.Meta
meta(name=name, content=value)
for property, content := range openGraph.Tags
meta(property=property, content=content)
2017-07-06 20:33:46 +02:00
2017-06-25 18:06:03 +02:00
link(rel="chrome-webstore-item", href="https://chrome.google.com/webstore/detail/hajchfikckiofgilinkpifobdbiajfch")
2017-06-04 01:17:00 +02:00
link(rel="manifest", href="/manifest.json")
2016-10-29 01:11:25 +09:00
body
2017-06-24 21:07:45 +02:00
#container(class=utils.GetContainerClass(ctx))
#header
2017-06-15 23:03:55 +02:00
Navigation(user)
#content-container
main#content.fade!= content
2017-06-26 23:41:16 +02:00
LoadingAnimation
2017-07-12 20:37:34 +02:00
StatusMessage
2017-06-30 17:51:17 +02:00
if user != nil
#user(data-id=user.ID)
2017-06-21 02:02:30 +02:00
script(src="/scripts")
2016-11-02 22:47:22 +09:00
2017-07-12 20:37:34 +02:00
component StatusMessage
#status-message.fade.fade-out
#status-message-text
2017-07-13 17:56:14 +02:00
a.status-message-action.action(href="#", data-trigger="click", data-action="closeStatusMessage", aria-label="Close status message")
2017-07-12 20:37:34 +02:00
RawIcon("close")
2016-11-02 22:47:22 +09:00
component LoadingAnimation
2017-06-19 16:20:46 +02:00
#loading.sk-cube-grid.fade
2017-06-17 02:33:22 +02:00
.sk-cube.hide
.sk-cube
.sk-cube.hide
.sk-cube
.sk-cube.sk-cube-center
.sk-cube
.sk-cube.hide
.sk-cube
.sk-cube.hide