Omit source code link if SOURCE_CODE is falsey

This commit is contained in:
Thomas Weber committed 2022-05-13 19:33:15 -05:00
1 parent dd37725889
commit 558ec321ce
2 files changed
+6 -3

No files matched your search

+4 -2
View File
@@ -205,8 +205,10 @@
<span class="footer-spacer">-</span>
{/if}
<a href={FEEDBACK_PRIMARY.link}>{$_('p4.feedback')}</a>
<span class="footer-spacer">-</span>
<a href={SOURCE_CODE}>{$_('p4.sourceCode')}</a>
{#if SOURCE_CODE}
<span class="footer-spacer">-</span>
<a href={SOURCE_CODE}>{$_('p4.sourceCode')}</a>
{/if}
</div>
<div>
<a href="https://docs.turbowarp.org/packager">{$_('p4.documentation')}</a>
+2 -1
View File
@@ -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