Dynamic nav bar links.

This commit is contained in:
codevictory
2021-03-30 22:07:07 +03:00
parent ddc50a7910
commit 67573dfa90

View File

@@ -15,10 +15,9 @@
<body>
<header >
<nav class="nav" role="navigation">
<a href="/">Etusivu</a>
<a href="calendar.html">Kalenteri</a>
<a href="performers.html">Esiintyjät</a>
<a href="contact.html">Yhteystiedot</a>
<%= link "Etusivu", to: Routes.page_path(@conn, :index) %>
<%= link "Esiintyjät", to: Routes.performer_path(@conn, :index) %>
<%= link "Ilmoittautuminen", to: Routes.performer_path(@conn, :new) %>
</nav>
</header>
<main role="main">