diff --git a/img/icons/solidaric/calendar.png b/img/icons/solidaric/calendar.png index 7d951c55e..0e69bd92c 100644 Binary files a/img/icons/solidaric/calendar.png and b/img/icons/solidaric/calendar.png differ diff --git a/img/icons/solidaric/calendar_notify.png b/img/icons/solidaric/calendar_notify.png index c364c3109..d52acb0e6 100644 Binary files a/img/icons/solidaric/calendar_notify.png and b/img/icons/solidaric/calendar_notify.png differ diff --git a/img/icons/solidaric/scope_event.png b/img/icons/solidaric/scope_event.png index 7d951c55e..0e69bd92c 100644 Binary files a/img/icons/solidaric/scope_event.png and b/img/icons/solidaric/scope_event.png differ diff --git a/img/icons/solidaric/search.png b/img/icons/solidaric/search.png index 18b7b05da..48d2d3e6d 100644 Binary files a/img/icons/solidaric/search.png and b/img/icons/solidaric/search.png differ diff --git a/webinterface.py b/webinterface.py index 4c6700150..281b63d34 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5853,6 +5853,42 @@ def htmlNewswire(newswire: {}, nickname: str, moderator: bool, return htmlStr +def htmlCitations(baseDir: str, nickname: str, domain: str, + httpPrefix: str, defaultTimeline: str, + translate: {}, newswire: {}) -> str: + """Show the citations screen when creating a blog + """ + htmlStr = '' + + # top banner + bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain) + htmlStr += \ + '\n' + htmlStr += '\n' + + # TODO add submit button + + for dateStr, item in newswire.items(): + publishedDate = \ + datetime.strptime(dateStr, "%Y-%m-%d %H:%M:%S%z") + dateShown = publishedDate.strftime("%Y-%m-%d %H:%M") + + title = removeLongWords(item[0], 16, []).replace('\n', '
') + link = item[1] + + # TODO add checkbox + htmlStr += '

' + \ + '' + \ + title + '' + htmlStr += ' ' + htmlStr += dateShown + '

\n' + + return htmlStr + + def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, httpPrefix: str, translate: {}, iconsDir: str, moderator: bool, editor: bool,