diff options
Diffstat (limited to 'app/views/activities')
-rw-r--r-- | app/views/activities/_results.html.erb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/activities/_results.html.erb b/app/views/activities/_results.html.erb index baa4ab0..ba2abe7 100644 --- a/app/views/activities/_results.html.erb +++ b/app/views/activities/_results.html.erb @@ -1,7 +1,11 @@ <div> <% results.each do |result| %> <% if result[:type] == "item" %> - <p>You got <%= result[:quantity] %> <%= result[:item].name %>.</p> + <p>You got <%= result[:quantity] %> <%= result[:item].name %> + <% if result[:xp].any? %> + (<%= result[:xp].map { |award| "#{award[:amount]} xp #{award[:skill].name}" }.join(", ") %>) + <% end %> + </p> <% end %> <% end %> </div> |