diff options
author | David Gay <david@davidgay.org> | 2021-05-28 21:23:38 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-28 21:23:38 -0400 |
commit | ca98987c1a14655aedb4bdcf8fef7311131ca1be (patch) | |
tree | 38fdd410cd6fdf97df7fe6215b66765875589ed9 /app/views/activities | |
parent | dbc5bea2712344664e0760dc287a7f53754b14d1 (diff) |
Monsters controller, activities index, and links to activities and items indexes
Diffstat (limited to 'app/views/activities')
-rw-r--r-- | app/views/activities/index.html.erb | 8 | ||||
-rw-r--r-- | app/views/activities/show.html.erb | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb new file mode 100644 index 0000000..593adca --- /dev/null +++ b/app/views/activities/index.html.erb @@ -0,0 +1,8 @@ +<h1 class="text-3xl mb-4">Activities</h1> + +<% @activities.each do |activity| %> + <div class="my-2"> + <div><%= link_to activity.name, activity_path(activity) %></div> + <p class="italic"><%= activity.description %></p> + </div> +<% end %> diff --git a/app/views/activities/show.html.erb b/app/views/activities/show.html.erb index 4516b51..50dbe4b 100644 --- a/app/views/activities/show.html.erb +++ b/app/views/activities/show.html.erb @@ -7,6 +7,6 @@ <% if @activity.whatnot %> <div class="text-code my-2"><%= JSON.pretty_generate(@activity.whatnot) %></div> <% else %> - <p>Item has no additional data.</p> + <p>Activity has no additional data.</p> <% end %> </div> |