Show newswire date

merge-requests/8/head
Bob Mottram 2020-10-04 22:37:27 +01:00
parent 8078177a0f
commit ef2bbfa615
2 changed files with 10 additions and 1 deletions

View File

@ -74,6 +74,7 @@
--column-left-header-size: 20px;
--column-left-icon-size: 20%;
--column-right-icon-size: 20%;
--newswire-date-color: white;
}
@font-face {
@ -228,6 +229,12 @@ a:focus {
color: var(--column-right-fg-color);
}
.newswireDate {
font-size: var(--font-size-newswire);
color: var(--newswire-date-color);
float: right;
}
.new-post-text {
font-size: var(--font-size2);
font-family: Arial, Helvetica, sans-serif;

View File

@ -5343,7 +5343,9 @@ def htmlNewswire(newswire: str) -> str:
htmlStr = ''
for dateStr, item in newswire.items():
htmlStr += '<p class="newswireItem">' + \
'<a href="' + item[1] + '">' + item[0] + '</a></p>'
'<a href="' + item[1] + '">' + item[0] + '</a><br>'
htmlStr += '<label class="newswireDate">'
htmlStr += dateStr + '</label></p>'
return htmlStr