Refactor contact information presentation in newsletter templates
- Updated the plain text and HTML formats to enhance the phrasing of contact information. - Adjusted styling and layout for better readability and consistency across different email clients. - Improved the structure of the contact section in the Outlook HTML format for a cleaner appearance.
This commit is contained in:
@@ -276,7 +276,7 @@ def create_plain_text(
|
||||
def _plain_contact_line(contact_email: str) -> list[str]:
|
||||
if contact_email.strip():
|
||||
return [
|
||||
f"Fragen oder ein Themenwunsch? E-Mail an das Wiki-Team: {contact_email.strip()}",
|
||||
f"Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team ({contact_email.strip()}).",
|
||||
"",
|
||||
]
|
||||
return ["Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team.", ""]
|
||||
@@ -349,15 +349,15 @@ def create_html(
|
||||
if contact_email.strip():
|
||||
ce = escape(contact_email.strip())
|
||||
contact_html = (
|
||||
f'Fragen oder ein Themenwunsch? Meldet euch gern beim '
|
||||
f'<a href="mailto:{ce}" style="color:{COLOR_TK_ORANGE};text-decoration:underline;">Wiki-Team</a>.'
|
||||
f'Fragen oder ein Themenwunsch? '
|
||||
f'<a href="mailto:{ce}" style="color:{COLOR_TK_ORANGE};text-decoration:underline;">Meldet euch gern beim Wiki-Team</a>.'
|
||||
)
|
||||
else:
|
||||
contact_html = "Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team."
|
||||
|
||||
contact_section = (
|
||||
f'<tr><td style="padding:8px 32px 18px 32px;" class="mobile-padding">'
|
||||
f'<p style="margin:0;font-family:{FONT};font-size:15px;line-height:24px;color:{COLOR_TEXT};">{contact_html}</p>'
|
||||
f'<tr><td style="padding:16px 32px 24px 32px;" class="mobile-padding">'
|
||||
f'<p style="margin:8px 0 0;font-family:{FONT};font-size:15px;line-height:24px;color:{COLOR_TEXT};">{contact_html}</p>'
|
||||
f"</td></tr>"
|
||||
)
|
||||
|
||||
@@ -756,14 +756,15 @@ def create_outlook_html(
|
||||
|
||||
if contact_email.strip():
|
||||
contact_block = (
|
||||
f'<p style="margin:0 0 16px;">'
|
||||
f'{_outlook_font("Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team: ", size="1")}'
|
||||
f'{_outlook_link(contact_email.strip(), f"mailto:{contact_email.strip()}", color=OUTLOOK_ORANGE, bold=False)}'
|
||||
f'<p style="margin:12px 0 20px;">'
|
||||
f'{_outlook_font("Fragen oder ein Themenwunsch? ", size="1")}'
|
||||
f'{_outlook_link("Meldet euch gern beim Wiki-Team", f"mailto:{contact_email.strip()}", color=OUTLOOK_ORANGE, bold=False, size="1")}'
|
||||
f'{_outlook_font(".", size="1")}'
|
||||
f"</p>"
|
||||
)
|
||||
else:
|
||||
contact_block = (
|
||||
f'<p style="margin:0 0 16px;">'
|
||||
f'<p style="margin:12px 0 20px;">'
|
||||
f'{_outlook_font("Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team.", size="1")}'
|
||||
f"</p>"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user