27 lines
795 B
Plaintext
27 lines
795 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Tokitranslate</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
|
<%= javascript_importmap_tags %>
|
|
</head>
|
|
|
|
<body>
|
|
<p class="notice"><%= notice %></p>
|
|
<p class="alert"><%= alert %></p>
|
|
<div style="display: block;">
|
|
<% if user_signed_in? %>
|
|
<p>Welcome <%= current_user.username %></p>
|
|
<%= link_to "Sign Out", destroy_user_session_path, data: { turbo_method: :delete } %>
|
|
<% else %>
|
|
<%= link_to "Sign In", new_user_session_path %>
|
|
<%= link_to "Register", new_user_registration_path %>
|
|
<% end %>
|
|
<%= yield %>
|
|
</body>
|
|
</html>
|