mirror of https://gitlab.com/bashrc2/epicyon
Monospace font for git patches
parent
0bea2ab9f9
commit
e4c9365de0
|
@ -270,6 +270,12 @@ a:link {
|
|||
width: 90%;
|
||||
}
|
||||
|
||||
.gitpatch {
|
||||
margin-left: 7%;
|
||||
width: 90%;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.container p.administeredby {
|
||||
font-size: var(--font-size-header);
|
||||
}
|
||||
|
|
|
@ -68,6 +68,7 @@ from happening import todaysEventsCheck
|
|||
from happening import thisWeeksEventsCheck
|
||||
from happening import getCalendarEvents
|
||||
from happening import getTodaysEvents
|
||||
from git import isGitPatch
|
||||
|
||||
|
||||
def updateAvatarImageCache(session, baseDir: str, httpPrefix: str,
|
||||
|
@ -3971,7 +3972,12 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
|
|||
if isMuted:
|
||||
contentStr = ''
|
||||
else:
|
||||
if not isGitPatch(baseDir, nickname, domain,
|
||||
postJsonObject['object']['summary'],
|
||||
postJsonObject['object']['content']):
|
||||
contentStr = '<div class="message">' + contentStr + '</div>'
|
||||
else:
|
||||
contentStr = '<div class="gitpatch">' + contentStr + '</div>'
|
||||
|
||||
postHtml = ''
|
||||
if boxName != 'tlmedia':
|
||||
|
|
Loading…
Reference in New Issue