diff options
Diffstat (limited to 'app/views/locations')
-rw-r--r-- | app/views/locations/index.html.erb | 8 | ||||
-rw-r--r-- | app/views/locations/show.html.erb | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb new file mode 100644 index 0000000..758fd35 --- /dev/null +++ b/app/views/locations/index.html.erb @@ -0,0 +1,8 @@ +<h1 class="text-xl">Locations</h1> + +<ul> + <% @locations.each do |location| %> + <li><span class="font-bold"><%= link_to location.name, location_path(location) %></span> + – <%= location.description %></li> + <% end %> +</ul> diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb new file mode 100644 index 0000000..c3a75e1 --- /dev/null +++ b/app/views/locations/show.html.erb @@ -0,0 +1,7 @@ +<h1 class="text-xl"><%= @location.name %></h1> + +<ul> + <% @location.activities.each do |activity| %> + <li><span class="font-bold"><%= link_to activity.name, "#" %></span> – <%= activity.description %></li> + <% end %> +</ul> |