mirror of https://gitlab.com/bashrc2/epicyon
Don't show quantity for single items
parent
51ff7f8126
commit
65ee4a6cee
|
@ -137,6 +137,7 @@ def _htmlSearchResultShare(sharedItem: {}, translate: {},
|
|||
'" alt="Item image"></a>\n'
|
||||
sharedItemsForm += '<p>' + sharedItem['summary'] + '</p>\n<p>'
|
||||
if sharedItem.get('itemQty'):
|
||||
if sharedItem['itemQty'] > 1:
|
||||
sharedItemsForm += \
|
||||
'<b>' + translate['Quantity'] + \
|
||||
':</b> ' + str(sharedItem['itemQty']) + '<br>'
|
||||
|
|
|
@ -826,6 +826,7 @@ def htmlIndividualShare(actor: str, item: {}, translate: {},
|
|||
'" alt="' + translate['Item image'] + '">\n</a>\n'
|
||||
profileStr += '<p>' + item['summary'] + '</p>\n<p>'
|
||||
if item.get('itemQty'):
|
||||
if item['itemQty'] > 1:
|
||||
profileStr += \
|
||||
'<b>' + translate['Quantity'] + ':</b> ' + \
|
||||
str(item['itemQty']) + '<br>'
|
||||
|
|
Loading…
Reference in New Issue