def update_index_about(): app.title = 'About' full_template_about = full_template_vanilla full_template_about = full_template_about.replace('{dashboard_div}', '') full_template_about = full_template_about.replace('{models_div}', '') full_template_about = full_template_about.replace('{tables_div}', '') full_template_about = full_template_about.replace('{about_div}', 'active') full_template_about = full_template_about.replace('{info_div}', '') app.index_string = full_template_about return app.index()
def update_index_info(): app.title = 'Info' full_template_info = full_template_vanilla full_template_info = full_template_info.replace('{dashboard_div}', '') full_template_info = full_template_info.replace('{models_div}', '') full_template_info = full_template_info.replace('{tables_div}', '') full_template_info = full_template_info.replace('{about_div}', '') full_template_info = full_template_info.replace('{info_div}', 'active') full_template_info = full_template_info.replace('{contexi_div}', '') app.index_string = full_template_info return app.index()
def _load_dash_path(path): if path is None or path == '' or path == 'index': title = 'Jinder' elif path == 'shutdown': title = 'Server Shutdown' elif path in _get_apps(include_dev=True): title = _get_app_info(path)[1] else: title = '404 ' + path _app.title = title # _app.title = path return _app.index()
def update_index_tables(): app.title = 'Tables' full_template_tables = full_template_vanilla full_template_tables = full_template_tables.replace('{dashboard_div}', '') full_template_tables = full_template_tables.replace('{models_div}', '') full_template_tables = full_template_tables.replace( '{tables_div}', 'active') full_template_tables = full_template_tables.replace('{about_div}', '') full_template_tables = full_template_tables.replace('{info_div}', '') full_template_tables = full_template_tables.replace('{context_div}', '') app.index_string = full_template_tables return app.index()
def update_index_dashboard(): app.title = 'Dashboard' full_template_dashboard = full_template_vanilla full_template_dashboard = \ full_template_dashboard.replace('{dashboard_div}', 'active') full_template_dashboard = full_template_dashboard.replace( '{models_div}', '') full_template_dashboard = full_template_dashboard.replace( '{tables_div}', '') full_template_dashboard = full_template_dashboard.replace( '{about_div}', '') full_template_dashboard = full_template_dashboard.replace('{info_div}', '') app.index_string = full_template_dashboard return app.index()