mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00:00
Add link to source code (#3873)
This commit is contained in:
parent
9ea0d12b0c
commit
b921d87dd3
@ -394,15 +394,15 @@ p.note {
|
|||||||
|
|
||||||
.aside-module {
|
.aside-module {
|
||||||
.section {
|
.section {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-logo-container {
|
.brand-logo-container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 97px;
|
height: 87px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-height: 97px;
|
max-height: 67px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{% assign components = site.components | sort: 'title' %}
|
{% assign components = site.components | sort: 'title' %}
|
||||||
|
{% assign github_main_repo = 'https://github.com/home-assistant/home-assistant/blob/master/homeassistant' %}
|
||||||
<section class="aside-module grid__item one-whole lap-one-half">
|
<section class="aside-module grid__item one-whole lap-one-half">
|
||||||
{% include edit_github.html %}
|
{% include edit_github.html %}
|
||||||
|
|
||||||
@ -23,13 +24,20 @@
|
|||||||
|
|
||||||
{% if page.ha_iot_class %}
|
{% if page.ha_iot_class %}
|
||||||
<div class='section'>
|
<div class='section'>
|
||||||
IoT class<sup><a href='/blog/2016/02/12/classifying-the-internet-of-things/#classifiers'><i class="icon-info-sign"></i></a></sup>: {{ page.ha_iot_class }}
|
IoT class<sup><a href='/blog/2016/02/12/classifying-the-internet-of-things/#classifiers'><i class="icon-info-sign"></i></a></sup>: {{ page.ha_iot_class }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.ha_release %}
|
{% if page.ha_release %}
|
||||||
<div class='section'>
|
<div class='section'>
|
||||||
Introduced in release: {{ page.ha_release }}
|
Introduced in release: {{ page.ha_release }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if is_platform %}
|
||||||
|
<div class='section'>
|
||||||
|
Source:
|
||||||
|
<a href='{{github_main_repo}}{{parent_url}}{{imp_name}}.py'>{{parent_name}}/{{imp_name}}.py</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user