Websites/app/views/layouts/application.html.erb
2024-07-14 13:49:24 -05:00

47 lines
1.6 KiB
Plaintext

<%# console if Rails.env.development? %>
<!DOCTYPE html>
<html lang="en">
<head>
<title><%= page_title %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="utf-8">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<% if Websites.config.enable_analytics && plausible_domain.present? %>
<%= Websites.config.plausible_script(plausible_domain).html_safe %>
<% end %>
<% if content_for(:html_head) %>
<%= yield :html_head %>
<% end %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
</head>
<body class="<%= body_class %>">
<div id="s-<%= safe_site_name %>">
<div id="c-<%= controller_param %>">
<div id="a-<%= action_param %>">
<div id="page">
<% if flash[:notice] %>
<div class="ui-corner-all ui-state-highlight" id="notice" data-controller="notice" data-notice-target="notice">
<span><%= flash[:notice] %></span>
<a href="#" id="close-notice-link" data-action="click->notice#close">close</a>
</div>
<% end %>
<% if flash[:alert] %>
<div class="ui-corner-all ui-state-error" id="notice" data-controller="notice" data-notice-target="notice">
<span><%= flash[:alert] %></span>
<a href="#" id="close-notice-link" data-action="click->notice#close">close</a>
</div>
<% end %>
<%= yield :layout %>
</div>
</div>
</div>
</div>
</body>
</html>