mirror of https://gitlab.com/bashrc2/epicyon
Show post author
parent
314a3aa047
commit
39bfc07ac5
|
@ -54,3 +54,8 @@ body {
|
||||||
float: left;
|
float: left;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-title {
|
||||||
|
margin-top: 0px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
|
@ -7,6 +7,8 @@ __email__ = "bob@freedombone.net"
|
||||||
__status__ = "Production"
|
__status__ = "Production"
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
from utils import getNicknameFromActor
|
||||||
|
from utils import getDomainFromActor
|
||||||
|
|
||||||
def htmlHeader(lang='en') -> str:
|
def htmlHeader(lang='en') -> str:
|
||||||
htmlStr= \
|
htmlStr= \
|
||||||
|
@ -72,10 +74,13 @@ def individualPostAsHtml(postJsonObject: {}) -> str:
|
||||||
'<img src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" class="attachment"></a>\n'
|
'<img src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" class="attachment"></a>\n'
|
||||||
attachmentCtr+=1
|
attachmentCtr+=1
|
||||||
|
|
||||||
|
nickname=getNicknameFromActor(postJsonObject['actor'])
|
||||||
|
domain,port=getDomainFromActor(postJsonObject['actor'])
|
||||||
return \
|
return \
|
||||||
'<div class="'+containerClass+'">\n' \
|
'<div class="'+containerClass+'">\n' \
|
||||||
'<a href="'+postJsonObject['actor']+'">' \
|
'<a href="'+postJsonObject['actor']+'">' \
|
||||||
'<img src="'+postJsonObject['actor']+'/avatar.png" alt="Avatar"'+avatarPosition+'></a>\n'+ \
|
'<img src="'+postJsonObject['actor']+'/avatar.png" alt="Avatar"'+avatarPosition+'></a>\n'+ \
|
||||||
|
'<p class="post-title">@'+nickname+'@'+domain+'</p>'+ \
|
||||||
postJsonObject['object']['content']+'\n'+ \
|
postJsonObject['object']['content']+'\n'+ \
|
||||||
attachmentStr+ \
|
attachmentStr+ \
|
||||||
'<span class="'+timeClass+'">'+postJsonObject['object']['published']+'</span>\n'+ \
|
'<span class="'+timeClass+'">'+postJsonObject['object']['published']+'</span>\n'+ \
|
||||||
|
|
Loading…
Reference in New Issue