ash_hq/lib/ash_hq_web/templates/layout/root.html.eex

44 lines
1.9 KiB
Elixir
Raw Normal View History

2022-03-21 17:43:24 +13:00
<!DOCTYPE html>
2022-10-23 00:51:22 +13:00
<html lang="en" class="<%= "#{@configured_theme}" %>">
2022-03-21 17:43:24 +13:00
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<%= csrf_meta_tag() %>
2022-03-26 10:17:01 +13:00
<%= live_title_tag assigns[:page_title] || "Ash Framework" %>
2022-08-31 07:26:22 +12:00
<%= if Application.get_env(:ash_hq, :analytics?) do %>
<script defer data-domain="ash-hq.org" src="https://plausible.io/js/plausible.js"></script>
<% end %>
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.2/jquery.min.js"></script>
<link phx-track-static rel="stylesheet" href="<%= Routes.static_path(@conn, "/assets/app.css") %>"/>
2022-03-21 17:43:24 +13:00
</head>
2022-03-26 10:17:01 +13:00
<body class="h-full">
<%= case live_flash(@flash, :info) do %>
<% nil -> %>
<% flash -> %>
<p class="alert alert-info" role="alert" phx-click="lv:clear-flash" phx-value-key="info">
<%= flash %>
</p>
<% end %>
<%= case live_flash(@flash, :error) do %>
<% nil -> %>
<% flash -> %>
<p class="alert alert-danger" role="alert" phx-click="lv:clear-flash" phx-value-key="error">
<%= flash %>
</p>
<% end %>
2022-03-21 17:43:24 +13:00
<%= @inner_content %>
2022-10-23 00:51:22 +13:00
<%= if @live_action == :docs do %>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.init(".mermaid")</script>
<% end %>
<%= if @live_action == :media do %>
<script src="https://platform.twitter.com/widgets.js" charset="utf-8" ></script>
<% end %>
<script defer phx-track-static type="text/javascript" src="<%= Routes.static_path(@conn, "/assets/app.js") %>"></script>
2022-03-21 17:43:24 +13:00
</body>
</html>