lib/rest-gw2/view/items.erb in rest-gw2-0.2.0 vs lib/rest-gw2/view/items.erb in rest-gw2-0.4.0

- old
+ new

@@ -1,18 +1,5 @@ -Total: <%= price(@buy) %> / <%= price(@sell) %> -<ul class="item"> -<% @items.each do |item| %> - <li> - <% if item %> - <%= item_wiki(item) %> - <span class="description"> - <%= h item['name'] || "?#{item['id']}?" %> - <%= h item_count(item) %> - <br/> - <%= item_price(item) %> - </span> - <% else %> - <%= blank_icon %> - <% end %> - </li> +<% buy, sell = sum_items(arg) %> +<% if buy > 0 || sell > 0 %> +Total: <%= price(buy) %> / <%= price(sell) %> <% end %> -</ul> +<%= erb :item_list, arg %>