33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Janus</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
|
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
|
</head>
|
|
|
|
<body>
|
|
<div class='jsx'>
|
|
<%= javascript_pack_tag 'menubar' %>
|
|
</div>
|
|
<div class="notification" style="display: flex; align-items: flex-start; justify-content: flex-start;">
|
|
<p class="notice"><%= notice %></p>
|
|
<p class="alert"><%= alert %></p>
|
|
</div>
|
|
<div class="user" style="display: flex; align-items: flex-start; justify-content: flex-end;">
|
|
<% if current_user %>
|
|
<h4 style="margin: 0; margin-right: 4px;">Signed in as <%=current_user.email%></h4>
|
|
<% end %>
|
|
<%=
|
|
link_to_if(current_user.nil?, "Login", new_user_session_path, class: 'btn btn-primary m-5') do
|
|
link_to('Sign out', destroy_user_session_path, :method => 'delete', class: 'btn btn-danger m-5')
|
|
end
|
|
%>
|
|
</div>
|
|
<%= yield %>
|
|
</body>
|
|
</html>
|