From 03f0272cffd96ae1805f9ccd51a50d4d54c0ceb4 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Mon, 5 Aug 2019 17:05:47 +0200 Subject: [PATCH] prettier icons --- static/js/search/SearchResult.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/static/js/search/SearchResult.js b/static/js/search/SearchResult.js index 811b812..88de72e 100644 --- a/static/js/search/SearchResult.js +++ b/static/js/search/SearchResult.js @@ -100,10 +100,18 @@ export default { description = m("span", [ "Shop, trading ", - m("span", {class:"badge badge-primary"}, obj.attributes.out_count + "x"), + m("span", {class:"badge badge-primary"}, + obj.attributes.out_count, + "x", + m("i", {class:"fa fa-cart-arrow-down"}) + ), m("span", {class:"badge badge-info"}, obj.attributes.out_item), " for ", - m("span", {class:"badge badge-primary"}, obj.attributes.in_count + "x"), + m("span", {class:"badge badge-primary"}, + obj.attributes.in_count, + "x", + m("i", {class:"fa fa-money-bill"}) + ), m("span", {class:"badge badge-info"}, obj.attributes.in_item), " Stock: ", m("span", {class:"badge badge-info"}, obj.attributes.stock)