summaryrefslogtreecommitdiff
path: root/app/views/locations
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/locations')
-rw-r--r--app/views/locations/index.html.erb8
-rw-r--r--app/views/locations/show.html.erb25
2 files changed, 0 insertions, 33 deletions
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/locations/show.html.erb
deleted file mode 100644
index 2f1074a..0000000
--- a/app/views/locations/show.html.erb
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="mb-4">
- <h1 class="text-3xl"><%= @location.name %></h1>
- <p class="italic"><%= @location.description %></p>
-</div>
-
-<% @location.monster_spawns.select(&:alive?).each do |ms| %>
- <p class="text-yellow-400">A <%= ms.monster.name %> is ravaging this location! (<%= ms.remaining_hp %> HP)</p>
- <%# TODO: HACK %>
- <% activity = Activity.find_by_gid("beastslay_leviathan_floret") %>
- <%= form_with url: start_activity_path(activity) do |f| %>
- <%= f.hidden_field :id, value: activity.id %>
- <%= f.submit "Hunt" %>
- <% end %>
-<% end %>
-
-<% @location.activities.order(:name).each do |activity| %>
- <div class="my-4">
- <h2 class="text-xl"><%= link_to activity.name, activity_path(activity) %></h2>
- <p class="italic"><%= activity.description %></p>
- <%= form_with url: start_activity_path(activity) do |f| %>
- <%= f.hidden_field :id, value: activity.id %>
- <%= f.submit "Start" %>
- <% end %>
- </div>
-<% end %>