tabletop-companion/app/views/layouts/application.html.erb

35 lines
1017 B
Plaintext
Raw Normal View History

2024-04-13 10:22:40 +00:00
<!DOCTYPE html>
<html>
<head>
<title><%= "#{yield(:title)} | " if content_for? :title %><%= t("site_name") %></title>
2024-04-13 10:22:40 +00:00
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
2024-05-26 08:38:17 +00:00
<%= stylesheet_link_tag :all, "data-turbo-track": "reload" %>
2024-04-13 10:22:40 +00:00
<%= javascript_importmap_tags %>
2024-04-14 19:01:32 +00:00
<meta name="turbo-refresh-method" content="morph">
<meta name="turbo-refresh-scroll" content="preserve">
2024-04-13 10:22:40 +00:00
</head>
<body>
2024-04-14 19:01:32 +00:00
<header>
<h1><%= link_to t("site_name"), root_path %></h1>
2024-05-26 08:51:17 +00:00
<nav>
<ul>
<% if logged_in? %>
<li><%= link_to t("log_out"), logout_path, data: {turbo_method: :delete} %></li>
<% else %>
<li><%= link_to t("log_in"), login_path %></li>
<li><%= link_to t("sign_up"), new_user_path %></li>
<% end %>
</ul>
</nav>
2024-04-14 19:01:32 +00:00
</header>
<%= render partial: "shared/flash_messages" %>
2024-04-21 12:45:31 +00:00
<main>
<%= yield %>
</main>
2024-04-13 10:22:40 +00:00
</body>
</html>