Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link updates following markdown removal #2813

Merged
merged 1 commit into from
Feb 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/panels/config/area_registry/ha-config-area-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ class HaConfigAreaRegistry extends LitElement {
"ui.panel.config.area_registry.picker.introduction2"
)}
</p>
<a href="/config/integrations"
><ha-icon icon="mdi:link"></ha-icon
></a>
<a href="/config/integrations">
${this.hass.localize(
"ui.panel.config.area_registry.picker.integrations_page"
)}
</a>
</span>
<paper-card>
${this._items.map((entry) => {
Expand Down
8 changes: 5 additions & 3 deletions src/panels/config/automation/ha-automation-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ class HaAutomationPicker extends LocalizeMixin(NavigateMixin(PolymerElement)) {
</div>
<div slot="introduction">
[[localize('ui.panel.config.automation.picker.introduction')]]
<a href="https://home-assistant.io/docs/automation/editor/"
><ha-icon icon="mdi:link"></ha-icon
></a>
<p>
<a href="https://home-assistant.io/docs/automation/editor/">
[[localize('ui.panel.config.automation.picker.learn_more')]]
</a>
</p>
</div>

<paper-card
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ class HaConfigEntityRegistry extends LitElement {
${this.hass.localize(
"ui.panel.config.entity_registry.picker.introduction2"
)}
<a href="/config/integrations"
><ha-icon icon="mdi:link"></ha-icon
></a>
</p>
<a href="/config/integrations">
${this.hass.localize(
"ui.panel.config.entity_registry.picker.integrations_page"
)}
</a>
</span>
<paper-card>
${this._items.map((entry) => {
Expand Down
10 changes: 7 additions & 3 deletions src/panels/config/js/automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export default class Automation extends Component {
)}
</p>
<a href="https://home-assistant.io/docs/automation/trigger/">
<ha-icon icon="mdi:link" />
{localize(
"ui.panel.config.automation.editor.triggers.learn_more"
)}
</a>
</span>
<Trigger
Expand All @@ -95,7 +97,9 @@ export default class Automation extends Component {
)}
</p>
<a href="https://home-assistant.io/docs/scripts/conditions/">
<ha-icon icon="mdi:link" />
{localize(
"ui.panel.config.automation.editor.conditions.learn_more"
)}
</a>
</span>
<Condition
Expand All @@ -117,7 +121,7 @@ export default class Automation extends Component {
)}
</p>
<a href="https://home-assistant.io/docs/automation/action/">
<ha-icon icon="mdi:link" />
{localize("ui.panel.config.automation.editor.actions.learn_more")}
</a>
</span>
<Script
Expand Down
20 changes: 16 additions & 4 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@
"picker": {
"header": "Area Registry",
"introduction": "Areas are used to organize where devices are. This information will be used throughout Home Assistant to help you in organizing your interface, permissions and integrations with other systems.",
"introduction2": "To place devices in an area, use the link below to navigate to the integrations page and then click on a configured integration to get to the device cards."
"introduction2": "To place devices in an area, use the link below to navigate to the integrations page and then click on a configured integration to get to the device cards.",
"integrations_page": "Integrations page"
},
"no_areas": "Looks like you have no areas yet!",
"create_area": "CREATE AREA",
Expand Down Expand Up @@ -604,6 +605,7 @@
"picker": {
"header": "Automation Editor",
"introduction": "The automation editor allows you to create and edit automations. Please follow the link below to read the instructions to make sure that you have configured Home Assistant correctly.",
"learn_more": "Learn more about automations",
"pick_automation": "Pick automation to edit",
"no_automations": "We couldn’t find any editable automations",
"add_automation": "Add automation"
Expand All @@ -616,7 +618,8 @@
"alias": "Name",
"triggers": {
"header": "Triggers",
"introduction": "Triggers are what starts the processing of an automation rule. It is possible to specify multiple triggers for the same rule. Once a trigger starts, Home Assistant will validate the conditions, if any, and call the action. Click the link below to learn more about triggers.",
"introduction": "Triggers are what starts the processing of an automation rule. It is possible to specify multiple triggers for the same rule. Once a trigger starts, Home Assistant will validate the conditions, if any, and call the action.",
"learn_more": "Learn more about triggers",
"add": "Add trigger",
"duplicate": "Duplicate",
"delete": "[%key:ui::panel::mailbox::delete_button%]",
Expand Down Expand Up @@ -697,7 +700,8 @@
},
"conditions": {
"header": "Conditions",
"introduction": "Conditions are an optional part of an automation rule and can be used to prevent an action from happening when triggered. Conditions look very similar to triggers but are very different. A trigger will look at events happening in the system while a condition only looks at how the system looks right now. A trigger can observe that a switch is being turned on. A condition can only see if a switch is currently on or off. Click the link below to learn more about conditions.",
"introduction": "Conditions are an optional part of an automation rule and can be used to prevent an action from happening when triggered. Conditions look very similar to triggers but are very different. A trigger will look at events happening in the system while a condition only looks at how the system looks right now. A trigger can observe that a switch is being turned on. A condition can only see if a switch is currently on or off.",
"learn_more": "Learn more about conditions",
"add": "Add condition",
"duplicate": "[%key:ui::panel::config::automation::editor::triggers::duplicate%]",
"delete": "[%key:ui::panel::mailbox::delete_button%]",
Expand Down Expand Up @@ -742,7 +746,8 @@
},
"actions": {
"header": "Actions",
"introduction": "The actions are what Home Assistant will do when the automation is triggered. Click the link below to learn more about actions.",
"introduction": "The actions are what Home Assistant will do when the automation is triggered.",
"learn_more": "Learn more about actions",
"add": "Add action",
"duplicate": "[%key:ui::panel::config::automation::editor::triggers::duplicate%]",
"delete": "[%key:ui::panel::mailbox::delete_button%]",
Expand Down Expand Up @@ -791,6 +796,7 @@
"header": "Entity Registry",
"introduction": "Home Assistant keeps a registry of every entity it has ever seen that can be uniquely identified. Each of these entities will have an entity ID assigned which will be reserved for just this entity.",
"introduction2": "Use the entity registry to override the name, change the entity ID or remove the entry from Home Assistant. Note, removing the entity registry entry won't remove the entity. To do that, follow the link below and remove it from the integrations page.",
"integrations_page": "Integrations page",
"unavailable": "(unavailable)"
},
"editor": {
Expand Down Expand Up @@ -897,6 +903,12 @@
"menu": {
"raw_editor": "Raw config editor"
},
"raw_editor": {
"header": "Edit Config",
"save": "Save",
"unsaved_changes": "Unsaved changes",
"saved": "Saved"
},
"edit_view": {
"header": "View Configuration",
"add": "Add view",
Expand Down