From 558ec321ceb7d2b65c260afe96e0d6b032bc5262 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Fri, 13 May 2022 19:33:15 -0500 Subject: [PATCH] Omit source code link if SOURCE_CODE is falsey --- src/p4/P4.svelte | 6 ++++-- src/packager/brand.js | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/p4/P4.svelte b/src/p4/P4.svelte index 120fd66..754e89d 100644 --- a/src/p4/P4.svelte +++ b/src/p4/P4.svelte @@ -205,8 +205,10 @@ - {/if} {$_('p4.feedback')} - - - {$_('p4.sourceCode')} + {#if SOURCE_CODE} + - + {$_('p4.sourceCode')} + {/if}
{$_('p4.documentation')} diff --git a/src/packager/brand.js b/src/packager/brand.js index 7d33619..30bf699 100644 --- a/src/packager/brand.js +++ b/src/packager/brand.js @@ -16,7 +16,8 @@ Also make sure to update the "License" section in README.md ACCENT_COLOR is a color used in various parts of the interface and as the default value for the accent color option. It should be a 6-character hex color (#123abc) -SOURCE_CODE is where users can find the app's source code. This link is included in the website. +SOURCE_CODE is where users can find the app's source code. This link is included in the website's footer. +If this is set to an empty string, the link is removed. FEEDBACK_PRIMARY and FEEDBACK_SECONDARY are feedback/bug report links shown in various places throughout the website. name is how they will be labelled in the interface and link is of course a URL