Websites/app/views/layouts/application.html.erb

44 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-05-03 03:04:43 +00:00
<% 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 content_for(:html_head) %>
<%= yield :html_head %>
<% end %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_include_tag "application", "data-turbo-track": "reload" %>
</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>