.
This commit is contained in:
parent
1e2aecc21c
commit
ab8412772e
5 changed files with 40 additions and 5 deletions
|
@ -11,8 +11,20 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<p class="notice"><%= notice %></p>
|
||||
<p class="alert"><%= alert %></p>
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue