Skip to content

Commit

Permalink
Feat: add favicon and render 'navbar' partial on application layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ITurres committed Dec 20, 2023
1 parent 3559ef3 commit 25e1ab3
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<%= favicon_link_tag asset_path("recipes-app-logo-png-favicon.png") %>

<%= csrf_meta_tags %>
<%= csp_meta_tag %>

Expand All @@ -18,20 +20,7 @@
</head>

<body>

<div class="p-1 text-center">
<% if user_signed_in? %>
<%= button_to("Sign Out", destroy_user_session_path,
method: :delete,
class: "btn btn-outline-success px-2 py-1",
style: "font-size: 0.9rem;") %>
<% else %>
<%= button_to("Sign in", new_user_session_path,
method: :get,
class: "btn btn-outline-success px-2 py-1",
style: "font-size: 0.9rem;") %>
<% end %>
</div>
<%= render "layouts/navbar" %>

<div class="container mt-1 text-center">
<% flash.each do |key, message| %>
Expand Down

0 comments on commit 25e1ab3

Please sign in to comment.