Skip to content

Commit

Permalink
Tweak branding
Browse files Browse the repository at this point in the history
Ensures the supported-devices link appears only if it's set.

Tweaks the text on the Done page to avoid confusion in case non-Ubuntu
Touch branding is being used.
  • Loading branch information
llewelld committed Apr 26, 2022
1 parent 85af22f commit 4601f26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/ui/views/Done.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@
</p>
{/if}
<p>
Development of Ubuntu Touch and this installer is driven by the
<a href="https://ubports.com">UBports Community</a>.
{#if branding.os === "Ubuntu Touch"}
Development of Ubuntu Touch and this installer is driven by the
<a href="https://ubports.com">UBports Community</a>.
{:else}
Development of this installer is driven by the
<a href="https://ubports.com">UBports Community</a>.
{/if}
{#if branding["donate-url"]}
<a href={branding["donate-url"]}>Donate</a> now to allow us to
continue our mission!
Expand Down
7 changes: 5 additions & 2 deletions src/ui/views/WaitForDevice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@
</button>
<p>
If your device is not detected automatically, you can select it manually
to proceed. Please note that the {branding.appname} will only work on
<a href={branding["supported-devices"]}>supported devices</a>.
to proceed.
{#if branding["supported-devices"]}
Please note that the {branding.appname} will only work on
<a href={branding["supported-devices"]}>supported devices</a>.
{/if}
</p>
<button
id="btn-modal-select-device"
Expand Down

0 comments on commit 4601f26

Please sign in to comment.