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