html_elixir _nav.html.eex

shared_view.ex
defmodule Blog.SharedView do
  use Blog.Web, :view
  
  def current_user(conn) do
    conn.assigns[:current_user]
  end
end
layout_view.ex
defmodule Blog.LayoutView do
  use Blog.Web, :view
  
  def current_user(conn) do
    conn.assigns[:current_user]
  end
end
error.log
UndefinedFunctionError at GET /
undefined function: :user.assigns/0
app.html.eex
<%= render Blog.SharedView, "_nav.html", current_user(:user) %>
_nav.html.eex
<%= if current_user(:user) do %>
  <%= link "Sign Out", to: session_path(@conn, :delete, current_user(@conn)), method: :delete %>
  <% else %>
  <%= link "Sign In", to: session_path(@conn, :new)   %>
<% end %>

html_elixir app.html.eex

shared_view.ex
defmodule Nyebc.SharedView do
  use Nyebc.Web, :view
end
footer.html.eex
<img class="logo" alt="logo" src="<%= static_path(Nyebc.Endpoint, "/images/logo-light.png") %>" />
app.html.eex
<%= render Nyebc.SharedView, "footer.html" %>