Remove use of <table> - breaking

alt-html-css
Admin 2020-11-12 07:55:13 +00:00
parent 6aa1cc8389
commit 9c9ffc301d
1 changed files with 10 additions and 19 deletions

View File

@ -393,14 +393,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
iconsAsButtons)
# start the timeline
tlStr += '<table class="timeline">\n'
tlStr += ' <colgroup>\n'
tlStr += ' <col span="1" class="column-left">\n'
tlStr += ' <col span="1" class="column-center">\n'
tlStr += ' <col span="1" class="column-right">\n'
tlStr += ' </colgroup>\n'
tlStr += ' <tbody>\n'
tlStr += ' <tr>\n'
tlStr += '<div class="timeline">\n'
domainFull = getFullDomain(domain, port)
@ -409,11 +402,11 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
getLeftColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate,
editor, False, None, rssIconAtTop,
True, False, theme)
tlStr += ' <td valign="top" class="col-left">' + \
leftColumnStr + ' </td>\n'
True, False)
tlStr += ' <div class="col-left">\n' + \
leftColumnStr + ' </div>\n'
# center column containing posts
tlStr += ' <td valign="top" class="col-center">\n'
tlStr += ' <div class="col-center">\n'
if not fullWidthTimelineButtonHeader:
tlStr += \
@ -602,7 +595,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
tlStr += ' </div>\n'
# end of column-center
tlStr += ' </td>\n'
tlStr += ' </div>\n'
# right column
rightColumnStr = getRightColumnContent(baseDir, nickname, domainFull,
@ -612,15 +605,13 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
False, None, True,
showPublishAsIcon,
rssIconAtTop, publishButtonAtTop,
authorized, True, theme)
tlStr += ' <td valign="top" class="col-right">' + \
rightColumnStr + ' </td>\n'
tlStr += ' </tr>\n'
authorized, True)
tlStr += ' <div class="col-right">' + \
rightColumnStr + ' </div>\n'
_logTimelineTiming(enableTimingLog, timelineStartTime, boxName, '9')
tlStr += ' </tbody>\n'
tlStr += '</table>\n'
tlStr += '</div>\n'
tlStr += htmlFooter()
return tlStr