mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:06:16 +00:00
markdown/tabbed_sections: Rename TAB_DISPLAY_NAMES to TAB_SECTION_LABELS.
This commit is contained in:
committed by
Tim Abbott
parent
076d9eeb16
commit
fe5de4a128
@@ -38,7 +38,7 @@ DIV_TAB_CONTENT_TEMPLATE = """
|
|||||||
|
|
||||||
# If adding new entries here, also check if you need to update
|
# If adding new entries here, also check if you need to update
|
||||||
# tabbed-instructions.js
|
# tabbed-instructions.js
|
||||||
TAB_DISPLAY_NAMES = {
|
TAB_SECTION_LABELS = {
|
||||||
"desktop-web": "Desktop/Web",
|
"desktop-web": "Desktop/Web",
|
||||||
"ios": "iOS",
|
"ios": "iOS",
|
||||||
"android": "Android",
|
"android": "Android",
|
||||||
@@ -138,7 +138,7 @@ class TabbedSectionsPreprocessor(Preprocessor):
|
|||||||
li_elements = []
|
li_elements = []
|
||||||
for tab in tab_section["tabs"]:
|
for tab in tab_section["tabs"]:
|
||||||
li = NAV_LIST_ITEM_TEMPLATE.format(
|
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)
|
li_elements.append(li)
|
||||||
return NAV_BAR_TEMPLATE.format(tabs="\n".join(li_elements))
|
return NAV_BAR_TEMPLATE.format(tabs="\n".join(li_elements))
|
||||||
|
|||||||
Reference in New Issue
Block a user