From 6e624b394b96f7b29d6dfcab268e871d5907e0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 28 Jan 2020 20:39:42 +0100 Subject: [PATCH] Corrects add-on link (#4634) * Fixes the addon url * quote it * Don't link the extra space * puerly for testing * Don't link the extra space --- hassio/src/addon-view/hassio-addon-info.ts | 503 ++++++++++----------- 1 file changed, 231 insertions(+), 272 deletions(-) diff --git a/hassio/src/addon-view/hassio-addon-info.ts b/hassio/src/addon-view/hassio-addon-info.ts index 80fb227aca..40e744a8fe 100644 --- a/hassio/src/addon-view/hassio-addon-info.ts +++ b/hassio/src/addon-view/hassio-addon-info.ts @@ -97,52 +97,48 @@ class HassioAddonInfo extends LitElement { protected render(): TemplateResult { return html` - ${ - this._computeUpdateAvailable - ? html` - -
- - ${!this.addon.available - ? html` -

- This update is no longer compatible with your system. -

- ` - : ""} -
-
- - Update - - ${this.addon.changelog - ? html` - - Changelog - - ` - : ""} -
-
- ` - : "" - } - - ${ - !this.addon.protected - ? html` + ${this._computeUpdateAvailable + ? html` + +
+ + ${!this.addon.available + ? html` +

+ This update is no longer compatible with your system. +

+ ` + : ""} +
+
+ + Update + + ${this.addon.changelog + ? html` + + Changelog + + ` + : ""} +
+
+ ` + : ""} + ${!this.addon.protected + ? html`
Protection mode on this add-on is disabled! This gives the add-on full access to the entire system, which adds security risks, and could damage your system when used incorrectly. Only disable the protection mode if you know, need AND trust the source of this add-on. @@ -153,16 +149,14 @@ class HassioAddonInfo extends LitElement {
` - : "" - } + : ""}
${this.addon.name}
- ${ - this.addon.version + ${this.addon.version ? html` ${this.addon.version} ${this._computeIsRunning @@ -183,25 +177,24 @@ class HassioAddonInfo extends LitElement { ` : html` ${this.addon.last_version} - ` - } + `}
${this.addon.description}.
- Visit - ${this.addon.name} page - for details. + Visit + + ${this.addon.name} page + for details.
- ${ - this.addon.logo - ? html` - - ` - : "" - } + ${this.addon.logo + ? html` + + ` + : ""}
- ${ - this.addon.host_network - ? html` - - ` - : "" - } - - ${ - this.addon.full_access - ? html` - - ` - : "" - } - - ${ - this.addon.homeassistant_api - ? html` - - ` - : "" - } - - ${ - this._computeHassioApi - ? html` - - ` - : "" - } - - ${ - this.addon.docker_api - ? html` - - ` - : "" - } - - ${ - this.addon.host_pid - ? html` - - ` - : "" - } - - ${ - this.addon.apparmor - ? html` - - ` - : "" - } - - ${ - this.addon.auth_api - ? html` - - ` - : "" - } - - ${ - this.addon.ingress - ? html` - - ` - : "" - } + ${this.addon.host_network + ? html` + + ` + : ""} + ${this.addon.full_access + ? html` + + ` + : ""} + ${this.addon.homeassistant_api + ? html` + + ` + : ""} + ${this._computeHassioApi + ? html` + + ` + : ""} + ${this.addon.docker_api + ? html` + + ` + : ""} + ${this.addon.host_pid + ? html` + + ` + : ""} + ${this.addon.apparmor + ? html` + + ` + : ""} + ${this.addon.auth_api + ? html` + + ` + : ""} + ${this.addon.ingress + ? html` + + ` + : ""}
- ${ - this.addon.version - ? html` -
-
Start on boot
- -
-
-
Auto update
- -
- ${this.addon.ingress - ? html` -
-
Show in sidebar
- - ${this._computeCannotIngressSidebar - ? html` - - This option requires Home Assistant 0.92 or - later. - - ` - : ""} + ${this.addon.version + ? html` +
+
Start on boot
+ +
+
+
Auto update
+ +
+ ${this.addon.ingress + ? html` +
+
Show in sidebar
+ + ${this._computeCannotIngressSidebar + ? html` + + This option requires Home Assistant 0.92 or + later. + + ` + : ""} +
+ ` + : ""} + ${this._computeUsesProtectedOptions + ? html` +
+
+ Protection mode + + + + Grant the add-on elevated system access. + +
- ` - : ""} - ${this._computeUsesProtectedOptions - ? html` -
-
- Protection mode - - - - Grant the add-on elevated system access. - - -
- -
- ` - : ""} - ` - : "" - } - ${ - this._error - ? html` -
${this._error}
- ` - : "" - } + +
+ ` + : ""} + ` + : ""} + ${this._error + ? html` +
${this._error}
+ ` + : ""}
- ${ - this.addon.version + ${this.addon.version ? html` Uninstall @@ -490,24 +452,21 @@ class HassioAddonInfo extends LitElement { > Install - ` - } + `}
- ${ - this.addon.long_description - ? html` - -
- -
-
- ` - : "" - } + ${this.addon.long_description + ? html` + +
+ +
+
+ ` + : ""} `; }