diff options
author | David Gay <david@davidgay.org> | 2021-05-27 18:26:25 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-27 18:26:25 -0400 |
commit | 2c2de801b4481695f3d1b6b14527116092cb1197 (patch) | |
tree | 63656e5870438ce2b1185b198ff38ce73c5cf78c /app/views/activities | |
parent | 82ebb73bb4fc53ec5af428a88809ab8f11e52c0b (diff) |
ItemsController that displays item game data
Diffstat (limited to 'app/views/activities')
-rw-r--r-- | app/views/activities/_results.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/activities/_results.html.erb b/app/views/activities/_results.html.erb index b7728fb..36e8103 100644 --- a/app/views/activities/_results.html.erb +++ b/app/views/activities/_results.html.erb @@ -2,7 +2,7 @@ <% results.each do |result| %> <% case result[:type] %> <% when "item" %> - <p>You got <%= result[:quantity] %> <%= result[:item].name %> + <p>You got <%= result[:quantity] %> <%= link_to result[:item].name, item_path(result[:item])%> <% if result[:xp]&.any? %> (<%= result[:xp].map { |award| "#{award[:amount] * result[:quantity]} xp #{award[:skill].name}" }.join(", ") %>) <% end %> |