Add new page link to nav

This commit is contained in:
Shadowfacts 2020-08-02 19:42:38 -04:00
parent 06c5ccc7c1
commit ecddb76101
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 0 deletions

View File

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