forked from indymedia/epicyon
Announce icon
parent
376fa17853
commit
cc38d8cc62
|
@ -394,6 +394,10 @@ a:link {
|
||||||
color: var(--main-fg-color);
|
color: var(--main-fg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.announce {
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.darker {
|
.darker {
|
||||||
background-color: var(--main-bg-color-reply);
|
background-color: var(--main-bg-color-reply);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1124,12 +1124,15 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
messageId=postJsonObject['id'].replace('/activity','')
|
messageId=postJsonObject['id'].replace('/activity','')
|
||||||
|
|
||||||
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
||||||
if isAnnounced and postJsonObject['object'].get('attributedTo'):
|
if isAnnounced:
|
||||||
|
if postJsonObject['object'].get('attributedTo'):
|
||||||
announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
|
announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
|
||||||
announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
|
announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
|
||||||
titleStr+=' <i class="replyingto">announced</i> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
|
titleStr+=' <img src="/icons/repeat_inactive.png" class="announce"/> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
|
||||||
|
else:
|
||||||
if not isAnnounced and postJsonObject['object'].get('inReplyTo'):
|
titleStr+=' <img src="/icons/repeat_inactive.png" class="announce"/> <a href="'+postJsonObject['object']['id']+'">@unattributed</a>'
|
||||||
|
else:
|
||||||
|
if postJsonObject['object'].get('inReplyTo'):
|
||||||
containerClassIcons='containericons darker'
|
containerClassIcons='containericons darker'
|
||||||
containerClass='container darker'
|
containerClass='container darker'
|
||||||
avatarPosition=' class="right"'
|
avatarPosition=' class="right"'
|
||||||
|
|
Loading…
Reference in New Issue