diff options
Diffstat (limited to 'app/views/look/_results.html.erb')
-rw-r--r-- | app/views/look/_results.html.erb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/app/views/look/_results.html.erb b/app/views/look/_results.html.erb deleted file mode 100644 index 1da0af7..0000000 --- a/app/views/look/_results.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -<div> - <% results.each do |result| %> - <% case result[:type] %> - <% when "item" %> - <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]} #{award[:skill].name} XP" }.join(", ") %>) - <% end %> - </p> - <% when "hearth_amenity" %> - <p>You constructed <%= result[:hearth_amenity].name %>.</p> - <% when "hearth_planting" %> - <p>You planted <%= link_to result[:hearth_planting].item.name, - item_path(result[:hearth_planting].item) %> in the loam.</p> - <% when "activity" %> - <p>You realized how to <%= result[:activity].name %>!</p> - <% when "monster" %> - <p>You encountered a <%= result[:monster].name %>.</p> - <p class="text-xs italic"><%= result[:monster].description %></p> - <% when "xp" %> - <p class="text-xs">You gained <%= result[:xp] %> <%= result[:skill].name %> XP.</p> - <% when "title" %> - <p>You earned the title <%= render "application/components/text/title", title: result[:title] %>!</p> - <% when "message" %> - <p><%= result[:body] %></p> - <% when "error" %> - <p class="text-red-500"><%= result[:message] %></p> - <% when "br" %> - <br /> - <% end %> - <% end %> -</div> |