45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>OpensmtpdRailsFrontend</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>
|
|
<div>
|
|
<menu>
|
|
<li><%= link_to "Home", root_path %></li><% if user_signed_in? %>
|
|
<li><%= link_to "Edit account", edit_user_registration_path %></li>
|
|
<li><%= button_to "Log out", destroy_user_session_path, method: :delete %></li><% end %>
|
|
</menu>
|
|
<br/>
|
|
</div>
|
|
|
|
<% if notice %><div class="flash"><%= notice %></div><% end %><% if alert %><div class="flash"><%= alert %></div><% end %>
|
|
|
|
<main>
|
|
<%= yield %>
|
|
</main>
|
|
<% if Rails.env == "development" %>
|
|
<footer>
|
|
RoR Version <%= Rails.version %> (<%=Rails.env%>) | Ruby <%= "#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}" %> | OS <%= RUBY_PLATFORM %> | App Version <%= `git describe --always` %>
|
|
|
|
<% if user_signed_in? %>
|
|
<hr/>
|
|
<%= "User:#{current_user.email} | OTP for login:#{current_user.otp_required_for_login} | " %>
|
|
<% end %>
|
|
<!--
|
|
<h3>To-Do (In order of importance):</h3>
|
|
<ul>
|
|
|
|
</ul>
|
|
-->
|
|
<% end %>
|
|
</footer>
|
|
</body>
|
|
</html>
|