48 lines
1.5 KiB
Plaintext
48 lines
1.5 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="app-menu">
|
|
<% if user_signed_in? %>
|
|
<% if current_user_disguised? %>
|
|
<%= image_button_to t(".revert"), "incognito-off", revert_users_path %>
|
|
<% else %>
|
|
<%= image_button_to t(".sign_out"), "logout", destroy_user_session_path,
|
|
method: :delete %>
|
|
<% end %>
|
|
<%= image_link_to current_user.email, "account-wrench-outline",
|
|
edit_user_registration_path, current: :hide %>
|
|
<% else %>
|
|
<%= image_link_to t(:register), "account-plus-outline", new_user_registration_path,
|
|
current: :hide %>
|
|
<%= image_link_to t(:sign_in), "login", new_user_session_path, current: :hide %>
|
|
<% 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>
|
|
|
|
<%# Allow overwriting/clearing navigation menu for some views %>
|
|
<div class="nav-menu">
|
|
<%= content_for(:navigation) || (navigation_menu if user_signed_in?) %>
|
|
</div>
|
|
|
|
<%= yield %>
|
|
</body>
|
|
</html>
|