Dynamic nav bar links.

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

View File

@@ -13,12 +13,11 @@
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script> <script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
</head> </head>
<body> <body>
<header> <header >
<nav class="nav" role="navigation"> <nav class="nav" role="navigation">
<a href="/">Etusivu</a> <%= link "Etusivu", to: Routes.page_path(@conn, :index) %>
<a href="calendar.html">Kalenteri</a> <%= link "Esiintyjät", to: Routes.performer_path(@conn, :index) %>
<a href="performers.html">Esiintyjät</a> <%= link "Ilmoittautuminen", to: Routes.performer_path(@conn, :new) %>
<a href="contact.html">Yhteystiedot</a>
</nav> </nav>
</header> </header>
<main role="main"> <main role="main">