No dropdown under some conditions

main
Bob Mottram 2021-02-05 12:29:22 +00:00
parent c0bd35adf9
commit d870bded7c
1 changed files with 6 additions and 6 deletions

View File

@ -279,14 +279,14 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
if not iconsAsButtons: if not iconsAsButtons:
newPostButtonStr += \ newPostButtonStr += \
'<a class="imageAnchor" href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \
'/newdm"><img loading="lazy" src="/' + \ '/newdm?nodropdown"><img loading="lazy" src="/' + \
'icons/newpost.png" title="' + \ 'icons/newpost.png" title="' + \
translate['Create a new DM'] + \ translate['Create a new DM'] + \
'" alt="| ' + translate['Create a new DM'] + \ '" alt="| ' + translate['Create a new DM'] + \
'" class="timelineicon"/></a>\n' '" class="timelineicon"/></a>\n'
else: else:
newPostButtonStr += \ newPostButtonStr += \
'<a href="' + usersPath + '/newdm">' + \ '<a href="' + usersPath + '/newdm?nodropdown">' + \
'<button class="button"><span>' + \ '<button class="button"><span>' + \
translate['Post'] + ' </span></button></a>' translate['Post'] + ' </span></button></a>'
elif (boxName == 'tlblogs' or elif (boxName == 'tlblogs' or
@ -309,28 +309,28 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
if not iconsAsButtons: if not iconsAsButtons:
newPostButtonStr += \ newPostButtonStr += \
'<a class="imageAnchor" href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \
'/newevent"><img loading="lazy" src="/' + \ '/newevent?nodropdown"><img loading="lazy" src="/' + \
'icons/newpost.png" title="' + \ 'icons/newpost.png" title="' + \
translate['Create a new event'] + '" alt="| ' + \ translate['Create a new event'] + '" alt="| ' + \
translate['Create a new event'] + \ translate['Create a new event'] + \
'" class="timelineicon"/></a>\n' '" class="timelineicon"/></a>\n'
else: else:
newPostButtonStr += \ newPostButtonStr += \
'<a href="' + usersPath + '/newevent">' + \ '<a href="' + usersPath + '/newevent?nodropdown">' + \
'<button class="button"><span>' + \ '<button class="button"><span>' + \
translate['Post'] + '</span></button></a>' translate['Post'] + '</span></button></a>'
elif boxName == 'tlshares': elif boxName == 'tlshares':
if not iconsAsButtons: if not iconsAsButtons:
newPostButtonStr += \ newPostButtonStr += \
'<a class="imageAnchor" href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \
'/newshare"><img loading="lazy" src="/' + \ '/newshare?nodropdown"><img loading="lazy" src="/' + \
'icons/newpost.png" title="' + \ 'icons/newpost.png" title="' + \
translate['Create a new shared item'] + '" alt="| ' + \ translate['Create a new shared item'] + '" alt="| ' + \
translate['Create a new shared item'] + \ translate['Create a new shared item'] + \
'" class="timelineicon"/></a>\n' '" class="timelineicon"/></a>\n'
else: else:
newPostButtonStr += \ newPostButtonStr += \
'<a href="' + usersPath + '/newshare">' + \ '<a href="' + usersPath + '/newshare?nodropdown">' + \
'<button class="button"><span>' + \ '<button class="button"><span>' + \
translate['Post'] + '</span></button></a>' translate['Post'] + '</span></button></a>'
else: else: