This commit is contained in:
jane 2021-11-13 20:10:25 -05:00
parent 1e2aecc21c
commit ab8412772e
5 changed files with 40 additions and 5 deletions

View file

@ -1,2 +1,3 @@
<h1>Home#index</h1>
<p>Find me in app/views/home/index.html.erb</p>
<div class="content">
<p> content </p>
</div>

View file

@ -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>