Optional share image

master
Bob Mottram 2019-08-25 22:07:02 +01:00
parent 5d533071c2
commit b0b21f7645
1 changed files with 3 additions and 2 deletions

View File

@ -136,8 +136,9 @@ def htmlSearchSharedItems(baseDir: str,searchStr: str,pageNumber: int,resultsPer
if currPage==pageNumber: if currPage==pageNumber:
sharedItemsForm+='<div class="container">' sharedItemsForm+='<div class="container">'
sharedItemsForm+='<p class="share-title">'+sharedItem['displayName']+'</p>' sharedItemsForm+='<p class="share-title">'+sharedItem['displayName']+'</p>'
sharedItemsForm+='<a href="'+sharedItem['imageUrl']+'">' if sharedItem('imageUrl'):
sharedItemsForm+='<img src="'+sharedItem['imageUrl']+'" alt="Item image"></a>' sharedItemsForm+='<a href="'+sharedItem['imageUrl']+'">'
sharedItemsForm+='<img src="'+sharedItem['imageUrl']+'" alt="Item image"></a>'
sharedItemsForm+='<p>'+sharedItem['summary']+'</p>' sharedItemsForm+='<p>'+sharedItem['summary']+'</p>'
sharedItemsForm+='<p><b>Type:</b> '+sharedItem['itemType']+' ' sharedItemsForm+='<p><b>Type:</b> '+sharedItem['itemType']+' '
sharedItemsForm+='<b>Category:</b> '+sharedItem['category']+' ' sharedItemsForm+='<b>Category:</b> '+sharedItem['category']+' '