Format CTA density cleanup
This commit is contained in:
@@ -3761,7 +3761,11 @@ CHOOSE_CARD_TITLES = {
|
||||
"es": ["Buena opción", "Qué significa en la práctica", "Ver primero el proceso"],
|
||||
"it": ["Scelta adatta", "Cosa significa in pratica", "Vedere prima il metodo"],
|
||||
"pt": ["Boa escolha", "O que isto significa na prática", "Ver primeiro o método"],
|
||||
"ru": ["Подходит вам", "Что это означает на практике", "Сначала посмотреть процесс"],
|
||||
"ru": [
|
||||
"Подходит вам",
|
||||
"Что это означает на практике",
|
||||
"Сначала посмотреть процесс",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -3769,15 +3773,15 @@ def _inline_link_text(locale: str, key: str) -> str:
|
||||
return INLINE_LINK_TEXT[key][locale]
|
||||
|
||||
|
||||
def _choose_cards(locale: str, items: list[str], process_url: str) -> list[dict[str, Any]]:
|
||||
def _choose_cards(
|
||||
locale: str, items: list[str], process_url: str
|
||||
) -> list[dict[str, Any]]:
|
||||
titles = CHOOSE_CARD_TITLES[locale]
|
||||
cards: list[dict[str, Any]] = []
|
||||
for index, body in enumerate(items):
|
||||
description = body
|
||||
if index == len(items) - 1:
|
||||
description = (
|
||||
f'{body} <a href="{process_url}">{_inline_link_text(locale, "process")}</a>.'
|
||||
)
|
||||
description = f'{body} <a href="{process_url}">{_inline_link_text(locale, "process")}</a>.'
|
||||
cards.append(
|
||||
item(
|
||||
{
|
||||
@@ -3838,7 +3842,8 @@ def _home_body(
|
||||
"icon_image": None,
|
||||
"title": title,
|
||||
"description": desc,
|
||||
"link_text": link_text or _inline_link_text(locale, "process"),
|
||||
"link_text": link_text
|
||||
or _inline_link_text(locale, "process"),
|
||||
"link_url": urls[link_key],
|
||||
"highlight": highlight,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user