Move Home Assistant and version on info page into h2 (#4061)

This commit is contained in:
Phi Dong 2019-10-19 05:24:28 -07:00 committed by Bram Kragten
parent e3ed0cf436
commit 0a77728652

13
src/panels/developer-tools/info/developer-tools-info.ts Normal file → Executable file
View File

@ -48,8 +48,7 @@ class HaPanelDevInfo extends LitElement {
alt="Home Assistant logo" alt="Home Assistant logo"
/></a> /></a>
<br /> <br />
Home Assistant<br /> <h2>Home Assistant ${hass.config.version}</h2>
${hass.config.version}
</p> </p>
<p> <p>
Path to configuration.yaml: ${hass.config.config_dir} Path to configuration.yaml: ${hass.config.config_dir}
@ -92,21 +91,23 @@ class HaPanelDevInfo extends LitElement {
</p> </p>
<p> <p>
Frontend version: ${JS_VERSION} - ${JS_TYPE} Frontend version: ${JS_VERSION} - ${JS_TYPE}
${customUiList.length > 0 ${
customUiList.length > 0
? html` ? html`
<div> <div>
Custom UIs: Custom UIs:
${customUiList.map( ${customUiList.map(
(item) => html` (item) => html`
<div> <div>
<a href="${item.url}" target="_blank"> ${item.name}</a>: <a href="${item.url}" target="_blank"> ${item.name}</a
${item.version} >: ${item.version}
</div> </div>
` `
)} )}
</div> </div>
` `
: ""} : ""
}
</p> </p>
<p> <p>
<a href="${nonDefaultLink}">${nonDefaultLinkText}</a><br /> <a href="${nonDefaultLink}">${nonDefaultLinkText}</a><br />