Skip to content

Commit 2d45566

Browse files
authored
Merge pull request #325 from HarikumarG/link-fix
Link Contribute
2 parents ff8f3d3 + e0fec9e commit 2d45566

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

addon/styles/components/es-footer.css

+5
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@
7070

7171
& .footer-copyright {
7272
color: var(--color-gray-600);
73+
74+
& svg {
75+
fill: var(--color-gray-600);
76+
width: 1rem;
77+
}
7378
}
7479

7580
& .footer-spacer {

addon/templates/components/es-footer-statement.hbs

+4
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
&copy; Copyright {{this.currentYear}} - <a href="https://www.tilde.io/" class="footer-copyright">Tilde Inc.</a>
44
<br>
55
{{@tagline}}
6+
{{#if @contributeLink}}
7+
<br>
8+
<a href={{@contributeLink}}>Contribute to this page {{svg-jar 'external-link'}}</a>
9+
{{/if}}
610
</p>
711
</div>

addon/templates/components/es-footer.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--}}
66
<EsFooterInfo @infoLinks={{this.infoLinks}} @socialLinks={{this.socialLinks}} />
77

8-
<EsFooterStatement @tagline={{this.tagline}} />
8+
<EsFooterStatement @tagline={{this.tagline}} @contributeLink={{@contributeLink}} />
99

1010
<hr class="footer-spacer container py-0 my-3">
1111

docs/components/footer.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
```handlebars
44
<EsFooter />
55
```
6+
7+
You can also add a "contribute to this page" link in the footer by passing `@contributeLink`:
8+
9+
```handlebars
10+
<EsFooter @contributeLink="https://github.com/ember-learn/ember-website" />
11+
```

public/images/icons/external-link.svg

+1
Loading

0 commit comments

Comments
 (0)