summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-07-05 20:30:15 -0400
committerDavid Gay <david@davidgay.org>2021-07-05 20:30:15 -0400
commit28426519e11e72576b1a3339f47c420f9c184e49 (patch)
treeae92cce4888f8cbd038359902a6db6df557fe5cc /app/views
parentf160f81a6daae8b478a5547078abc7c7b29ef747 (diff)
Give characters a location, and replace the Locations view+controller with a Look view+controller
Diffstat (limited to 'app/views')
-rw-r--r--app/views/application/_navbar.html.erb2
-rw-r--r--app/views/locations/index.html.erb8
-rw-r--r--app/views/look/look.html.erb (renamed from app/views/locations/show.html.erb)0
3 files changed, 1 insertions, 9 deletions
diff --git a/app/views/application/_navbar.html.erb b/app/views/application/_navbar.html.erb
index e315b42..d80e7b6 100644
--- a/app/views/application/_navbar.html.erb
+++ b/app/views/application/_navbar.html.erb
@@ -1,7 +1,7 @@
<ul class="py-2 px-2 col-span-12 text-display space-x-2.5">
<% if current_char %>
<li class="inline">
- <%= link_to "Locations", locations_path %>
+ <%= link_to "Look", look_path %>
</li>
<li class="inline">
<%= link_to "Character", character_path(current_char) %>
diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb
deleted file mode 100644
index 3c9b837..0000000
--- a/app/views/locations/index.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<h1 class="text-3xl mb-4">Locations</h1>
-
-<% @locations.each do |location| %>
- <div class="my-4">
- <h2 class="text-xl"><%= link_to location.name, location_path(location) %></h2>
- <p class="italic"><%= location.description %></p>
- </div>
-<% end %>
diff --git a/app/views/locations/show.html.erb b/app/views/look/look.html.erb
index 2f1074a..2f1074a 100644
--- a/app/views/locations/show.html.erb
+++ b/app/views/look/look.html.erb