about summary refs log tree commit diff
path: root/app/views/layouts/application.html.erb
blob: ae0092e9036b33930ad4965c395a81b5f63aeb61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Knockout</title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <%= csrf_meta_tags %>
  <%= csp_meta_tag %>

  <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
  <%= javascript_importmap_tags %>
  <%= favicon_link_tag asset_path('favicon.png') %>
</head>

<body>
<nav>
  <%= link_to 'Home', root_path, class: "#{"current" if current_page?(root_path)}" %>
  <%= link_to 'Pins', machines_path, class: "#{"current" if current_page?(machines_path)}" %>
  <%= link_to 'Players', players_path, class: "#{"current" if current_page?(players_path)}" %>
  <%= link_to 'Randomize', { controller: 'pages', action: 'randomize' }, class: "#{"current" if current_page?(controller: 'pages', action: 'randomize')}" %>
</nav>
<%= yield %>
</body>
</html>