forked from indymedia/epicyon
Features timeline
parent
c02ab1ad29
commit
750a63523b
|
@ -92,7 +92,7 @@ def htmlNewPostDropDown(scopeIcon: str, scopeDescription: str,
|
|||
iconsPath + '/scope_public.png"/><b>' + \
|
||||
translate['Public'] + '</b><br>' + \
|
||||
translate['Visible to anyone'] + '</a></li>\n'
|
||||
if defaultTimeline == 'tlnews':
|
||||
if defaultTimeline == 'tlfeatures':
|
||||
dropDownContent += \
|
||||
'<li><a href="' + pathBase + dropdownNewBlogSuffix + \
|
||||
'"><img loading="lazy" alt="" title="" src="/' + \
|
||||
|
@ -305,7 +305,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
|||
if path.endswith('/newblog'):
|
||||
placeholderSubject = translate['Title']
|
||||
scopeIcon = 'scope_blog.png'
|
||||
if defaultTimeline != 'tlnews':
|
||||
if defaultTimeline != 'tlfeatures':
|
||||
scopeDescription = translate['Blog']
|
||||
else:
|
||||
scopeDescription = translate['Article']
|
||||
|
|
|
@ -116,7 +116,7 @@ def headerButtonsTimeline(defaultTimeline: str,
|
|||
'</span></button></a>'
|
||||
|
||||
isFeaturesTimeline = \
|
||||
defaultTimeline == 'tlnews' and boxName == 'tlnews'
|
||||
defaultTimeline == 'tlfeatures' and boxName == 'tlfeatures'
|
||||
|
||||
if not isFeaturesTimeline:
|
||||
# typically the blogs button
|
||||
|
@ -124,7 +124,7 @@ def headerButtonsTimeline(defaultTimeline: str,
|
|||
if defaultTimeline != 'tlblogs':
|
||||
if not minimal and not isFeaturesTimeline:
|
||||
titleStr = translate['Blogs']
|
||||
if defaultTimeline == 'tlnews':
|
||||
if defaultTimeline == 'tlfeatures':
|
||||
titleStr = translate['Article']
|
||||
tlStr += \
|
||||
'<a href="' + usersPath + \
|
||||
|
@ -141,7 +141,7 @@ def headerButtonsTimeline(defaultTimeline: str,
|
|||
|
||||
# typically the news button
|
||||
# but may change if this is a news oriented instance
|
||||
if defaultTimeline != 'tlnews':
|
||||
if defaultTimeline != 'tlfeatures':
|
||||
tlStr += \
|
||||
'<a href="' + usersPath + \
|
||||
'/tlnews"><button class="' + \
|
||||
|
|
|
@ -286,7 +286,9 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
'<a href="' + usersPath + '/newdm">' + \
|
||||
'<button class="button"><span>' + \
|
||||
translate['Post'] + ' </span></button></a>'
|
||||
elif boxName == 'tlblogs' or boxName == 'tlnews':
|
||||
elif (boxName == 'tlblogs' or
|
||||
boxName == 'tlnews' or
|
||||
boxName == 'tlfeatures'):
|
||||
if not iconsAsButtons:
|
||||
newPostButtonStr += \
|
||||
'<a class="imageAnchor" href="' + usersPath + \
|
||||
|
|
Loading…
Reference in New Issue