mirror of https://gitlab.com/bashrc2/epicyon
media div
parent
0e87e2f777
commit
5373d1aa30
|
@ -322,6 +322,12 @@ a:link {
|
|||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.media {
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.container p.administeredby {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
|
|
@ -1107,6 +1107,7 @@ def individualPostAsHtml(baseDir: str, \
|
|||
if postJsonObject['object']['attachment']:
|
||||
if isinstance(postJsonObject['object']['attachment'], list):
|
||||
attachmentCtr=0
|
||||
attachmentStr+='<div class="media">'
|
||||
for attach in postJsonObject['object']['attachment']:
|
||||
if attach.get('mediaType') and attach.get('url'):
|
||||
mediaType=attach['mediaType']
|
||||
|
@ -1126,8 +1127,7 @@ def individualPostAsHtml(baseDir: str, \
|
|||
'<a href="'+attach['url']+'">' \
|
||||
'<img src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" class="attachment"></a>\n'
|
||||
attachmentCtr+=1
|
||||
if attachmentCtr>0:
|
||||
attachmentStr+='<br>'
|
||||
attachmentStr+='</div>'
|
||||
|
||||
if not avatarUrl:
|
||||
avatarUrl=getPersonAvatarUrl(baseDir,postJsonObject['actor'],personCache)
|
||||
|
|
Loading…
Reference in New Issue