Skip to content

Commit

Permalink
Very aggressive legacy note, resolves #221 (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird authored Aug 27, 2019
1 parent 0b71a20 commit e0ce376
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/html/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ html
include modals/error
include modals/password
include modals/oem-lock
include modals/legacy-android
include modals/low-power
include modals/select-device
include modals/developer-mode
Expand Down
13 changes: 13 additions & 0 deletions src/html/modals/legacy-android.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#legacy-android-modal.modal.fade(tabindex='-1', role='dialog')
.modal-dialog(role='document')
.modal-content
.modal-header
button.close(type='button', data-dismiss='modal', aria-label='Close')
span(aria-hidden='true') ×
h4.modal-title This is a legacy Android device!
.modal-body
p If your device is running Android, you might have to #[a(onclick="shell.openExternal('https://docs.ubports.com/en/latest/userguide/install.html#install-on-legacy-android-devices')") install the old Ubuntu Touch version from Canonical] first to unlock the bootloader.
p #[b The UBports Installer will not work while this device is running Android!]
p You can follow #[a(onclick="shell.openExternal('https://docs.ubports.com/en/latest/userguide/install.html#install-on-legacy-android-devices')") this step-by-step guide] to unlock your device.
.modal-footer
button.btn.btn-default(type='button', data-dismiss='modal') Got it, my device is unlocked!
2 changes: 2 additions & 0 deletions src/html/scripts/main.pug
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ script.
$("#device-name").text(output.name);
if (isLegacyAndroid && !ubuntuCom)
$("#legacy-android-note").show();
if (isLegacyAndroid)
modals.show("legacy-android");
if (autoDetected)
footer.underText.set("Are you ready for Ubuntu Touch on your " + output.name + "?");
else
Expand Down

0 comments on commit e0ce376

Please sign in to comment.