forked from indymedia/epicyon
Remove spaces and newlines
parent
aa5743e575
commit
c3e960140b
|
@ -6712,23 +6712,20 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
eventsButtonStr = ''
|
eventsButtonStr = ''
|
||||||
if not minimal:
|
if not minimal:
|
||||||
sharesButtonStr = \
|
sharesButtonStr = \
|
||||||
' ' + \
|
|
||||||
'<a href="' + usersPath + '/tlshares"><button class="' + \
|
'<a href="' + usersPath + '/tlshares"><button class="' + \
|
||||||
sharesButton + '"><span>' + \
|
sharesButton + '"><span>' + \
|
||||||
htmlHighlightLabel(translate['Shares'], newShare) + \
|
htmlHighlightLabel(translate['Shares'], newShare) + \
|
||||||
' </span></button></a>\n'
|
'</span></button></a>'
|
||||||
|
|
||||||
bookmarksButtonStr = \
|
bookmarksButtonStr = \
|
||||||
' ' + \
|
|
||||||
'<a href="' + usersPath + '/tlbookmarks"><button class="' + \
|
'<a href="' + usersPath + '/tlbookmarks"><button class="' + \
|
||||||
bookmarksButton + '"><span>' + translate['Bookmarks'] + \
|
bookmarksButton + '"><span>' + translate['Bookmarks'] + \
|
||||||
' </span></button></a>\n'
|
'</span></button></a>'
|
||||||
|
|
||||||
eventsButtonStr = \
|
eventsButtonStr = \
|
||||||
' ' + \
|
|
||||||
'<a href="' + usersPath + '/tlevents"><button class="' + \
|
'<a href="' + usersPath + '/tlevents"><button class="' + \
|
||||||
eventsButton + '"><span>' + translate['Events'] + \
|
eventsButton + '"><span>' + translate['Events'] + \
|
||||||
' </span></button></a>\n'
|
'</span></button></a>'
|
||||||
|
|
||||||
tlStr = htmlHeader(cssFilename, profileStyle)
|
tlStr = htmlHeader(cssFilename, profileStyle)
|
||||||
|
|
||||||
|
@ -6741,7 +6738,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
if boxName == 'dm':
|
if boxName == 'dm':
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
' <a class="imageAnchor" href="' + usersPath + \
|
'<a class="imageAnchor" href="' + usersPath + \
|
||||||
'/newdm"><img loading="lazy" src="/' + \
|
'/newdm"><img loading="lazy" src="/' + \
|
||||||
iconsDir + '/newpost.png" title="' + \
|
iconsDir + '/newpost.png" title="' + \
|
||||||
translate['Create a new DM'] + \
|
translate['Create a new DM'] + \
|
||||||
|
@ -6751,11 +6748,11 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
'<a href="' + usersPath + '/newdm">' + \
|
'<a href="' + usersPath + '/newdm">' + \
|
||||||
'<button class="button"><span>' + \
|
'<button class="button"><span>' + \
|
||||||
translate['Post'] + ' </span></button></a>\n'
|
translate['Post'] + ' </span></button></a>'
|
||||||
elif boxName == 'tlblogs' or boxName == 'tlnews':
|
elif boxName == 'tlblogs' or boxName == 'tlnews':
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
' <a class="imageAnchor" href="' + usersPath + \
|
'<a class="imageAnchor" href="' + usersPath + \
|
||||||
'/newblog"><img loading="lazy" src="/' + \
|
'/newblog"><img loading="lazy" src="/' + \
|
||||||
iconsDir + '/newpost.png" title="' + \
|
iconsDir + '/newpost.png" title="' + \
|
||||||
translate['Create a new post'] + '" alt="| ' + \
|
translate['Create a new post'] + '" alt="| ' + \
|
||||||
|
@ -6765,11 +6762,11 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
'<a href="' + usersPath + '/newblog">' + \
|
'<a href="' + usersPath + '/newblog">' + \
|
||||||
'<button class="button"><span>' + \
|
'<button class="button"><span>' + \
|
||||||
translate['Post'] + ' </span></button></a>\n'
|
translate['Post'] + '</span></button></a>'
|
||||||
elif boxName == 'tlevents':
|
elif boxName == 'tlevents':
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
' <a class="imageAnchor" href="' + usersPath + \
|
'<a class="imageAnchor" href="' + usersPath + \
|
||||||
'/newevent"><img loading="lazy" src="/' + \
|
'/newevent"><img loading="lazy" src="/' + \
|
||||||
iconsDir + '/newpost.png" title="' + \
|
iconsDir + '/newpost.png" title="' + \
|
||||||
translate['Create a new event'] + '" alt="| ' + \
|
translate['Create a new event'] + '" alt="| ' + \
|
||||||
|
@ -6779,12 +6776,12 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
'<a href="' + usersPath + '/newevent">' + \
|
'<a href="' + usersPath + '/newevent">' + \
|
||||||
'<button class="button"><span>' + \
|
'<button class="button"><span>' + \
|
||||||
translate['Post'] + ' </span></button></a>\n'
|
translate['Post'] + '</span></button></a>'
|
||||||
else:
|
else:
|
||||||
if not manuallyApproveFollowers:
|
if not manuallyApproveFollowers:
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
' <a class="imageAnchor" href="' + usersPath + \
|
'<a class="imageAnchor" href="' + usersPath + \
|
||||||
'/newpost"><img loading="lazy" src="/' + \
|
'/newpost"><img loading="lazy" src="/' + \
|
||||||
iconsDir + '/newpost.png" title="' + \
|
iconsDir + '/newpost.png" title="' + \
|
||||||
translate['Create a new post'] + '" alt="| ' + \
|
translate['Create a new post'] + '" alt="| ' + \
|
||||||
|
@ -6794,11 +6791,11 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
'<a href="' + usersPath + '/newpost">' + \
|
'<a href="' + usersPath + '/newpost">' + \
|
||||||
'<button class="button"><span>' + \
|
'<button class="button"><span>' + \
|
||||||
translate['Post'] + ' </span></button></a>\n'
|
translate['Post'] + '</span></button></a>'
|
||||||
else:
|
else:
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
' <a class="imageAnchor" href="' + usersPath + \
|
'<a class="imageAnchor" href="' + usersPath + \
|
||||||
'/newfollowers"><img loading="lazy" src="/' + \
|
'/newfollowers"><img loading="lazy" src="/' + \
|
||||||
iconsDir + '/newpost.png" title="' + \
|
iconsDir + '/newpost.png" title="' + \
|
||||||
translate['Create a new post'] + \
|
translate['Create a new post'] + \
|
||||||
|
@ -6808,7 +6805,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
newPostButtonStr = \
|
newPostButtonStr = \
|
||||||
'<a href="' + usersPath + '/newfollowers">' + \
|
'<a href="' + usersPath + '/newfollowers">' + \
|
||||||
'<button class="button"><span>' + \
|
'<button class="button"><span>' + \
|
||||||
translate['Post'] + ' </span></button></a>\n'
|
translate['Post'] + '</span></button></a>'
|
||||||
# This creates a link to the profile page when viewed
|
# This creates a link to the profile page when viewed
|
||||||
# in lynx, but should be invisible in a graphical web browser
|
# in lynx, but should be invisible in a graphical web browser
|
||||||
tlStr += \
|
tlStr += \
|
||||||
|
|
Loading…
Reference in New Issue