From fe5de4a1280b2b052d7fcb14c34bd829a63c1bf5 Mon Sep 17 00:00:00 2001 From: Pradyumna Sinha Date: Sat, 2 Oct 2021 02:46:47 +0530 Subject: [PATCH] markdown/tabbed_sections: Rename TAB_DISPLAY_NAMES to TAB_SECTION_LABELS. --- zerver/lib/markdown/tabbed_sections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/markdown/tabbed_sections.py b/zerver/lib/markdown/tabbed_sections.py index bde9a582ae..1dac6da1ea 100644 --- a/zerver/lib/markdown/tabbed_sections.py +++ b/zerver/lib/markdown/tabbed_sections.py @@ -38,7 +38,7 @@ DIV_TAB_CONTENT_TEMPLATE = """ # If adding new entries here, also check if you need to update # tabbed-instructions.js -TAB_DISPLAY_NAMES = { +TAB_SECTION_LABELS = { "desktop-web": "Desktop/Web", "ios": "iOS", "android": "Android", @@ -138,7 +138,7 @@ class TabbedSectionsPreprocessor(Preprocessor): li_elements = [] for tab in tab_section["tabs"]: li = NAV_LIST_ITEM_TEMPLATE.format( - data_language=tab.get("tab_name"), name=TAB_DISPLAY_NAMES.get(tab.get("tab_name")) + data_language=tab.get("tab_name"), name=TAB_SECTION_LABELS.get(tab.get("tab_name")) ) li_elements.append(li) return NAV_BAR_TEMPLATE.format(tabs="\n".join(li_elements))