__filename__ = "webapp_headerbuttons.py" __author__ = "Bob Mottram" __license__ = "AGPL3+" __version__ = "1.4.0" __maintainer__ = "Bob Mottram" __email__ = "bob@libreserver.org" __status__ = "Production" __module_group__ = "Timeline" import os import time from utils import acct_dir from datetime import datetime from datetime import timedelta from happening import day_events_check from webapp_utils import html_highlight_label def header_buttons_timeline(default_timeline: str, box_name: str, page_number: int, translate: {}, users_path: str, media_button: str, blogs_button: str, features_button: str, news_button: str, inbox_button: str, dm_button: str, new_dm: str, replies_button: str, new_reply: str, minimal: bool, sent_button: str, shares_button_str: str, wanted_button_str: str, bookmarks_button_str: str, events_button_str: str, moderation_button_str: str, new_post_button_str: str, base_dir: str, nickname: str, domain: str, timeline_start_time, new_calendar_event: bool, calendar_path: str, calendar_image: str, follow_approvals: str, icons_as_buttons: bool, access_keys: {}, is_text_browser: str) -> str: """Returns the header at the top of the timeline, containing buttons for inbox, outbox, search, calendar, etc """ # start of the button header with inbox, outbox, etc tl_str = '
' # end of the button header with inbox, outbox, etc tl_str += ' \n' return tl_str