Skip to content

Commit b921d87

Browse files
authored
Add link to source code (home-assistant#3873)
1 parent 9ea0d12 commit b921d87

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

sass/custom/_paulus.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,15 @@ p.note {
394394

395395
.aside-module {
396396
.section {
397-
margin-bottom: 16px;
397+
margin-bottom: 10px;
398398
}
399399

400400
.brand-logo-container {
401401
text-align: center;
402-
height: 97px;
402+
height: 87px;
403403

404404
img {
405-
max-height: 97px;
405+
max-height: 67px;
406406
}
407407
}
408408
}

source/_includes/asides/component_navigation.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% assign components = site.components | sort: 'title' %}
2+
{% assign github_main_repo = 'https://github.com/home-assistant/home-assistant/blob/master/homeassistant' %}
23
<section class="aside-module grid__item one-whole lap-one-half">
34
{% include edit_github.html %}
45

@@ -23,13 +24,20 @@
2324

2425
{% if page.ha_iot_class %}
2526
<div class='section'>
26-
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 }}
27+
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 }}
2728
</div>
2829
{% endif %}
2930

3031
{% if page.ha_release %}
3132
<div class='section'>
32-
Introduced in release: {{ page.ha_release }}
33+
Introduced in release: {{ page.ha_release }}
34+
</div>
35+
{% endif %}
36+
37+
{% if is_platform %}
38+
<div class='section'>
39+
Source:
40+
<a href='{{github_main_repo}}{{parent_url}}{{imp_name}}.py'>{{parent_name}}/{{imp_name}}.py</a>
3341
</div>
3442
{% endif %}
3543

0 commit comments

Comments
 (0)