2019-08-17 20:58:36 +02:00
|
|
|
doctype html
|
|
|
|
html lang="en"
|
|
|
|
head
|
|
|
|
meta http-equiv="X-UA-Compatible" content="IE=edge"
|
2019-12-20 15:19:43 +01:00
|
|
|
= viewport_meta_tag(@conn)
|
|
|
|
|
2019-08-18 02:43:44 +02:00
|
|
|
title
|
2019-08-17 20:58:36 +02:00
|
|
|
= if assigns[:title] do
|
|
|
|
=> assigns[:title]
|
2024-05-20 19:04:12 +02:00
|
|
|
' -
|
|
|
|
=< site_name()
|
2019-08-17 20:58:36 +02:00
|
|
|
- else
|
2024-05-20 19:04:12 +02:00
|
|
|
=<> site_name()
|
2024-06-22 19:51:48 +02:00
|
|
|
link rel="preconnect" href="https://#{cdn_host()}"
|
2024-06-06 22:28:35 +02:00
|
|
|
link rel="stylesheet" href=~p"/css/application.css"
|
2024-07-03 21:32:27 +02:00
|
|
|
link#js-theme-stylesheet rel="stylesheet" href=stylesheet_path(@conn, @current_user)
|
2020-12-08 06:24:32 +01:00
|
|
|
= if is_nil(@current_user) do
|
2024-07-03 21:32:27 +02:00
|
|
|
link#js-theme-stylesheet rel="stylesheet" href=light_stylesheet_path(@conn) media="(prefers-color-scheme: light)"
|
2024-04-28 05:01:16 +02:00
|
|
|
link rel="icon" href=~p"/favicon.ico" type="image/x-icon"
|
|
|
|
link rel="icon" href=~p"/favicon.svg" type="image/svg+xml"
|
2024-06-03 15:35:44 +02:00
|
|
|
link rel="search" type="application/opensearchdescription+xml" title="Derpibooru" href="/opensearch.xml"
|
2019-08-18 02:43:44 +02:00
|
|
|
meta name="generator" content="philomena"
|
|
|
|
meta name="theme-color" content="#618fc3"
|
|
|
|
meta name="format-detection" content="telephone=no"
|
2019-11-13 05:49:37 +01:00
|
|
|
= csrf_meta_tag()
|
2024-04-30 19:13:46 +02:00
|
|
|
|
2024-05-04 03:06:15 +02:00
|
|
|
= vite_hmr? do
|
2024-06-10 21:17:06 +02:00
|
|
|
script type="module" src="http://#{@conn.host}:5173/@vite/client"
|
|
|
|
script type="module" src="http://#{@conn.host}:5173/js/app.ts"
|
2024-04-30 19:13:46 +02:00
|
|
|
- else
|
2024-04-28 05:01:16 +02:00
|
|
|
script type="text/javascript" src=~p"/js/app.js" async="async"
|
2019-12-04 02:56:39 +01:00
|
|
|
= render PhilomenaWeb.LayoutView, "_opengraph.html", assigns
|
2024-04-30 19:13:46 +02:00
|
|
|
body data-theme=theme_name(@current_user) data-vite-reload=to_string(vite_reload?())
|
2019-08-18 02:43:44 +02:00
|
|
|
= render PhilomenaWeb.LayoutView, "_burger.html", assigns
|
2019-11-30 23:40:53 +01:00
|
|
|
#container class=container_class(@current_user)
|
2019-08-18 02:43:44 +02:00
|
|
|
= render PhilomenaWeb.LayoutView, "_header.html", assigns
|
|
|
|
= render PhilomenaWeb.LayoutView, "_flash_warnings.html", assigns
|
2019-11-17 23:51:14 +01:00
|
|
|
main#content class=layout_class(@conn)
|
2020-04-27 22:29:23 +02:00
|
|
|
= @inner_content
|
2019-10-05 02:27:26 +02:00
|
|
|
= render PhilomenaWeb.LayoutView, "_footer.html", assigns
|
2020-12-09 06:04:37 +01:00
|
|
|
form.hidden: input.js-interaction-cache type="hidden" value="{}"
|
2019-12-16 03:35:07 +01:00
|
|
|
= clientside_data(@conn)
|