From 21a1c99fda39d77d59916c1aaec786a5a3bc2db1 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 27 Nov 2025 22:02:20 +0100 Subject: [PATCH] Added Newsletter button to following --- .../templates/menu/followus.yml.j2 | 18 +++++++++++++----- roles/web-app-listmonk/meta/main.yml | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/roles/web-app-desktop/templates/menu/followus.yml.j2 b/roles/web-app-desktop/templates/menu/followus.yml.j2 index 8e507b1e..37a92068 100644 --- a/roles/web-app-desktop/templates/menu/followus.yml.j2 +++ b/roles/web-app-desktop/templates/menu/followus.yml.j2 @@ -12,7 +12,7 @@ followus: class: fa-brands fa-mastodon url: "{{ WEB_PROTOCOL }}://{{ service_provider.contact.mastodon.split('@')[2] }}/@{{ service_provider.contact.mastodon.split('@')[1] }}" identifier: "{{service_provider.contact.mastodon}}" - iframe: {{ applications | get_app_conf('web-app-mastodon','features.desktop',True) }} + iframe: {{ applications | get_app_conf('web-app-mastodon','features.desktop') }} {% endif %} {% if service_provider.contact.bluesky is defined and service_provider.contact.bluesky != "" %} - name: Bluesky @@ -31,7 +31,7 @@ followus: class: fa-solid fa-camera identifier: "{{service_provider.contact.pixelfed}}" url: "{{ WEB_PROTOCOL }}://{{ service_provider.contact.pixelfed.split('@')[2] }}/@{{ service_provider.contact.pixelfed.split('@')[1] }}" - iframe: {{ applications | get_app_conf('web-app-pixelfed','features.desktop',True) }} + iframe: {{ applications | get_app_conf('web-app-pixelfed','features.desktop') }} {% endif %} {% if service_provider.contact.peertube is defined and service_provider.contact.peertube != "" %} - name: Peertube @@ -40,7 +40,7 @@ followus: class: fa-solid fa-video identifier: "{{service_provider.contact.peertube}}" url: "{{ WEB_PROTOCOL }}://{{ service_provider.contact.peertube.split('@')[2] }}/@{{ service_provider.contact.peertube.split('@')[1] }}" - iframe: {{ applications | get_app_conf('web-app-peertube','features.desktop',True) }} + iframe: {{ applications | get_app_conf('web-app-peertube','features.desktop') }} {% endif %} {% if service_provider.contact.wordpress is defined and service_provider.contact.wordpress != "" %} - name: WordPress @@ -49,7 +49,7 @@ followus: class: fa-solid fa-blog identifier: "{{service_provider.contact.wordpress}}" url: "{{ WEB_PROTOCOL }}://{{ service_provider.contact.wordpress.split('@')[2] }}/@{{ service_provider.contact.wordpress.split('@')[1] }}" - iframe: {{ applications | get_app_conf('web-app-wordpress','features.desktop',True) }} + iframe: {{ applications | get_app_conf('web-app-wordpress','features.desktop') }} {% endif %} {% if service_provider.contact.friendica is defined and service_provider.contact.friendica != "" %} - name: Friendica @@ -58,5 +58,13 @@ followus: class: fa-solid fa-network-wired identifier: "{{service_provider.contact.friendica}}" url: "{{ WEB_PROTOCOL }}://{{ service_provider.contact.friendica.split('@')[2] }}/@{{ service_provider.contact.friendica.split('@')[1] }}" - iframe: {{ applications | get_app_conf('web-app-friendica','features.desktop',True) }} + iframe: {{ applications | get_app_conf('web-app-friendica','features.desktop') }} {% endif %} +{% if 'web-app-listmonk' in group_names %} + - name: Newsletter + description: Subscribe {{ 'our' if service_provider.type == 'legal' else 'my' }} our newsletter + icon: + class: fa-solid fa-envelope + url: "{{ domains | get_url("web-app-listmonk", WEB_PROTOCOL) }}" + iframe: {{ applications | get_app_conf('web-app-listmonk','features.desktop') }} +{% endif %} \ No newline at end of file diff --git a/roles/web-app-listmonk/meta/main.yml b/roles/web-app-listmonk/meta/main.yml index dec129cf..46918196 100644 --- a/roles/web-app-listmonk/meta/main.yml +++ b/roles/web-app-listmonk/meta/main.yml @@ -18,7 +18,7 @@ galaxy_info: issue_tracker_url: "https://s.infinito.nexus/issues" documentation: "https://docs.infinito.nexus" logo: - class: "fa-solid fa-list" + class: "fa-solid fa-envelope" run_after: - web-app-matomo - web-app-keycloak