From 17ae18cff02bf4e183ed83b1211671bb199b902a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 6 Mar 2020 23:03:44 +0100 Subject: [PATCH] Link to source/alerts based on ha_domain (#12301) --- .../asides/component_navigation.html | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/source/_includes/asides/component_navigation.html b/source/_includes/asides/component_navigation.html index 44ff45602d3b..853d4bacd338 100644 --- a/source/_includes/asides/component_navigation.html +++ b/source/_includes/asides/component_navigation.html @@ -1,6 +1,4 @@ -{%- assign github_main_repo = 'https://github.com/home-assistant/home-assistant/blob/dev/homeassistant' -%}
- {%- include edit_github.html -%}
{%- if page.logo -%} @@ -10,13 +8,11 @@ {%- endif -%}
- {%- assign file_parts = page.url | split: '/' | last | split: '.' -%} - {%- assign imp_name = file_parts | last -%} - {%- assign imp_url = imp_name | prepend: '/components/' | append: '/' -%} - -
- -
+ {%- if page.ha_domain -%} +
+ +
+ {%- endif -%} {%- if page.ha_iot_class -%}
@@ -52,9 +48,11 @@
{%- endif -%} -
- Source: {{imp_url}} -
+ {%- if page.ha_domain -%} +
+ Source: View on GitHub +
+ {%- endif -%} {%- if page.ha_category.first -%}