2021-11-13 03:20:13 +00:00
|
|
|
<!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>
|
2021-12-08 03:34:17 +00:00
|
|
|
<div class='jsx'>
|
|
|
|
<%= javascript_pack_tag 'menubar' %>
|
|
|
|
</div>
|
2021-11-14 01:10:25 +00:00
|
|
|
<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>
|
2021-11-13 03:20:13 +00:00
|
|
|
<%= yield %>
|
|
|
|
</body>
|
|
|
|
</html>
|