Add new page link to nav
This commit is contained in:
parent
06c5ccc7c1
commit
ecddb76101
|
@ -14,6 +14,9 @@
|
|||
<nav role="navigation">
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<%= if @current_user do %>
|
||||
<li><%= link "New Page", to: Routes.page_path(@conn, :new) %></li>
|
||||
<% end %>
|
||||
<%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
|
||||
<li><%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %></li>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue