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