about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/application.html.erb12
-rw-r--r--app/views/pages/index.html.erb3
2 files changed, 14 insertions, 1 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 4b286d2..47f7f24 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -10,6 +10,16 @@
   </head>
 
   <body>
-    <%= yield %>
+    <main>
+      <nav>
+        <%= link_to "Home", root_path %> ~
+        <%= link_to "Manage Tables", machines_path %> ~
+        <%= link_to "Add Players", players_path %> ~
+        <%= link_to "Pick Random Table", controller: "machines", action: "random" %>
+      </nav>
+      <hr>
+
+      <%= yield %>
+    </main>
   </body>
 </html>
diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb
new file mode 100644
index 0000000..bccab8f
--- /dev/null
+++ b/app/views/pages/index.html.erb
@@ -0,0 +1,3 @@
+<h1>nomi pinball</h1>
+<%= image_tag "coinslotlogo.png" %>
+