Add link to source code (#3873)

This commit is contained in:
Fabian Affolter 2017-11-05 15:10:00 +01:00 committed by GitHub
parent 9ea0d12b0c
commit b921d87dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 5 deletions

View File

@ -394,15 +394,15 @@ p.note {
.aside-module {
.section {
margin-bottom: 16px;
margin-bottom: 10px;
}
.brand-logo-container {
text-align: center;
height: 97px;
height: 87px;
img {
max-height: 97px;
max-height: 67px;
}
}
}

View File

@ -1,4 +1,5 @@
{% 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">
{% include edit_github.html %}
@ -23,13 +24,20 @@
{% if page.ha_iot_class %}
<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>
{% endif %}
{% if page.ha_release %}
<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>
{% endif %}