forked from fixin.me/fixin.me
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>fixin.me</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= stylesheet_link_tag "application" %>
|
|
<%= javascript_importmap_tags %>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="application-menu">
|
|
<% if user_signed_in? %>
|
|
<%= image_link_to t(:sign_out), "logout", destroy_user_session_path,
|
|
data: { turbo_method: :delete } %>
|
|
<% else %>
|
|
<%= image_link_to t(:register), "account-plus-outline", new_user_registration_path,
|
|
unless_current: true %>
|
|
<%= image_link_to t(:recover_password), "lock-reset", new_user_password_path,
|
|
unless_current: true %>
|
|
<%= image_link_to t(:sign_in), "login", new_user_session_path, unless_current: true %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="flashes">
|
|
<% flash.each do |entry, message| %>
|
|
<div class="flash <%= entry %>">
|
|
<div><%= sanitize message %></div>
|
|
<button tabindex="-1" onclick="this.parentElement.style.display='none';">×</button>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= yield %>
|
|
</body>
|
|
</html>
|