Features timeline

main
Bob Mottram 2020-11-27 13:03:17 +00:00
parent c02ab1ad29
commit 750a63523b
3 changed files with 8 additions and 6 deletions

View File

@ -92,7 +92,7 @@ def htmlNewPostDropDown(scopeIcon: str, scopeDescription: str,
iconsPath + '/scope_public.png"/><b>' + \ iconsPath + '/scope_public.png"/><b>' + \
translate['Public'] + '</b><br>' + \ translate['Public'] + '</b><br>' + \
translate['Visible to anyone'] + '</a></li>\n' translate['Visible to anyone'] + '</a></li>\n'
if defaultTimeline == 'tlnews': if defaultTimeline == 'tlfeatures':
dropDownContent += \ dropDownContent += \
'<li><a href="' + pathBase + dropdownNewBlogSuffix + \ '<li><a href="' + pathBase + dropdownNewBlogSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + \ '"><img loading="lazy" alt="" title="" src="/' + \
@ -305,7 +305,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
if path.endswith('/newblog'): if path.endswith('/newblog'):
placeholderSubject = translate['Title'] placeholderSubject = translate['Title']
scopeIcon = 'scope_blog.png' scopeIcon = 'scope_blog.png'
if defaultTimeline != 'tlnews': if defaultTimeline != 'tlfeatures':
scopeDescription = translate['Blog'] scopeDescription = translate['Blog']
else: else:
scopeDescription = translate['Article'] scopeDescription = translate['Article']

View File

@ -116,7 +116,7 @@ def headerButtonsTimeline(defaultTimeline: str,
'</span></button></a>' '</span></button></a>'
isFeaturesTimeline = \ isFeaturesTimeline = \
defaultTimeline == 'tlnews' and boxName == 'tlnews' defaultTimeline == 'tlfeatures' and boxName == 'tlfeatures'
if not isFeaturesTimeline: if not isFeaturesTimeline:
# typically the blogs button # typically the blogs button
@ -124,7 +124,7 @@ def headerButtonsTimeline(defaultTimeline: str,
if defaultTimeline != 'tlblogs': if defaultTimeline != 'tlblogs':
if not minimal and not isFeaturesTimeline: if not minimal and not isFeaturesTimeline:
titleStr = translate['Blogs'] titleStr = translate['Blogs']
if defaultTimeline == 'tlnews': if defaultTimeline == 'tlfeatures':
titleStr = translate['Article'] titleStr = translate['Article']
tlStr += \ tlStr += \
'<a href="' + usersPath + \ '<a href="' + usersPath + \
@ -141,7 +141,7 @@ def headerButtonsTimeline(defaultTimeline: str,
# typically the news button # typically the news button
# but may change if this is a news oriented instance # but may change if this is a news oriented instance
if defaultTimeline != 'tlnews': if defaultTimeline != 'tlfeatures':
tlStr += \ tlStr += \
'<a href="' + usersPath + \ '<a href="' + usersPath + \
'/tlnews"><button class="' + \ '/tlnews"><button class="' + \

View File

@ -286,7 +286,9 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
'<a href="' + usersPath + '/newdm">' + \ '<a href="' + usersPath + '/newdm">' + \
'<button class="button"><span>' + \ '<button class="button"><span>' + \
translate['Post'] + ' </span></button></a>' translate['Post'] + ' </span></button></a>'
elif boxName == 'tlblogs' or boxName == 'tlnews': elif (boxName == 'tlblogs' or
boxName == 'tlnews' or
boxName == 'tlfeatures'):
if not iconsAsButtons: if not iconsAsButtons:
newPostButtonStr += \ newPostButtonStr += \
'<a class="imageAnchor" href="' + usersPath + \ '<a class="imageAnchor" href="' + usersPath + \