forked from indymedia/epicyon
Extra container
parent
18885a7060
commit
5dc9f0b78d
|
@ -5332,33 +5332,34 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
tlStr += ' </div>\n'
|
tlStr += ' </div>\n'
|
||||||
tlStr += ' <div class="column-center">\n'
|
tlStr += ' <div class="column-center">\n'
|
||||||
|
|
||||||
|
tlStr += ' <div class="container">\n'
|
||||||
# first button
|
# first button
|
||||||
if defaultTimeline == 'tlmedia':
|
if defaultTimeline == 'tlmedia':
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/tlmedia"><button class="' + \
|
'/tlmedia"><button class="' + \
|
||||||
mediaButton + '"><span>' + translate['Media'] + \
|
mediaButton + '"><span>' + translate['Media'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
elif defaultTimeline == 'tlblogs':
|
elif defaultTimeline == 'tlblogs':
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/tlblogs"><button class="' + \
|
'/tlblogs"><button class="' + \
|
||||||
blogsButton + '"><span>' + translate['Blogs'] + \
|
blogsButton + '"><span>' + translate['Blogs'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/inbox"><button class="' + \
|
'/inbox"><button class="' + \
|
||||||
inboxButton + '"><span>' + \
|
inboxButton + '"><span>' + \
|
||||||
translate['Inbox'] + '</span></button></a>\n'
|
translate['Inbox'] + '</span></button></a>\n'
|
||||||
|
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + '/dm"><button class="' + dmButton + \
|
' <a href="' + usersPath + '/dm"><button class="' + dmButton + \
|
||||||
'"><span>' + htmlHighlightLabel(translate['DM'], newDM) + \
|
'"><span>' + htmlHighlightLabel(translate['DM'], newDM) + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
|
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + '/tlreplies"><button class="' + \
|
' <a href="' + usersPath + '/tlreplies"><button class="' + \
|
||||||
repliesButton + '"><span>' + \
|
repliesButton + '"><span>' + \
|
||||||
htmlHighlightLabel(translate['Replies'], newReply) + \
|
htmlHighlightLabel(translate['Replies'], newReply) + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
|
@ -5367,14 +5368,14 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
if defaultTimeline != 'tlmedia':
|
if defaultTimeline != 'tlmedia':
|
||||||
if not minimal:
|
if not minimal:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/tlmedia"><button class="' + \
|
'/tlmedia"><button class="' + \
|
||||||
mediaButton + '"><span>' + translate['Media'] + \
|
mediaButton + '"><span>' + translate['Media'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
else:
|
else:
|
||||||
if not minimal:
|
if not minimal:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/inbox"><button class="' + \
|
'/inbox"><button class="' + \
|
||||||
inboxButton+'"><span>' + translate['Inbox'] + \
|
inboxButton+'"><span>' + translate['Inbox'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
|
@ -5384,21 +5385,21 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
if defaultTimeline != 'tlblogs':
|
if defaultTimeline != 'tlblogs':
|
||||||
if not minimal:
|
if not minimal:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/tlblogs"><button class="' + \
|
'/tlblogs"><button class="' + \
|
||||||
blogsButton + '"><span>' + translate['Blogs'] + \
|
blogsButton + '"><span>' + translate['Blogs'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
else:
|
else:
|
||||||
if not minimal:
|
if not minimal:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/inbox"><button class="' + \
|
'/inbox"><button class="' + \
|
||||||
inboxButton + '"><span>' + translate['Inbox'] + \
|
inboxButton + '"><span>' + translate['Inbox'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
|
|
||||||
# button for the outbox
|
# button for the outbox
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
' <a href="' + usersPath + \
|
||||||
'/outbox"><button class="' + \
|
'/outbox"><button class="' + \
|
||||||
sentButton+'"><span>' + translate['Outbox'] + \
|
sentButton+'"><span>' + translate['Outbox'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
|
@ -5410,7 +5411,7 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
|
|
||||||
# the search button
|
# the search button
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a class="imageAnchor" href="' + usersPath + \
|
' <a class="imageAnchor" href="' + usersPath + \
|
||||||
'/search"><img loading="lazy" src="/' + \
|
'/search"><img loading="lazy" src="/' + \
|
||||||
iconsDir + '/search.png" title="' + \
|
iconsDir + '/search.png" title="' + \
|
||||||
translate['Search and follow'] + '" alt="| ' + \
|
translate['Search and follow'] + '" alt="| ' + \
|
||||||
|
@ -5427,20 +5428,20 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
# indicate that the calendar icon is highlighted
|
# indicate that the calendar icon is highlighted
|
||||||
calendarAltText = '*' + calendarAltText + '*'
|
calendarAltText = '*' + calendarAltText + '*'
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a class="imageAnchor" href="' + usersPath + calendarPath + \
|
' <a class="imageAnchor" href="' + usersPath + calendarPath + \
|
||||||
'"><img loading="lazy" src="/' + iconsDir + '/' + \
|
'"><img loading="lazy" src="/' + iconsDir + '/' + \
|
||||||
calendarImage + '" title="' + translate['Calendar'] + \
|
calendarImage + '" title="' + translate['Calendar'] + \
|
||||||
'" alt="| ' + calendarAltText + '" class="timelineicon"/></a>\n'
|
'" alt="| ' + calendarAltText + '" class="timelineicon"/></a>\n'
|
||||||
|
|
||||||
# the show/hide button, for a simpler header appearance
|
# the show/hide button, for a simpler header appearance
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a class="imageAnchor" href="' + usersPath + '/minimal' + \
|
' <a class="imageAnchor" href="' + usersPath + '/minimal' + \
|
||||||
'"><img loading="lazy" src="/' + iconsDir + \
|
'"><img loading="lazy" src="/' + iconsDir + \
|
||||||
'/showhide.png" title="' + translate['Show/Hide Buttons'] + \
|
'/showhide.png" title="' + translate['Show/Hide Buttons'] + \
|
||||||
'" alt="| ' + translate['Show/Hide Buttons'] + \
|
'" alt="| ' + translate['Show/Hide Buttons'] + \
|
||||||
'" class="timelineicon"/></a>\n'
|
'" class="timelineicon"/></a>\n'
|
||||||
tlStr += followApprovals
|
tlStr += followApprovals
|
||||||
# tlStr += '</div>\n'
|
tlStr += ' </div>\n'
|
||||||
|
|
||||||
# second row of buttons for moderator actions
|
# second row of buttons for moderator actions
|
||||||
if moderator and boxName == 'moderation':
|
if moderator and boxName == 'moderation':
|
||||||
|
|
Loading…
Reference in New Issue