Skip to content

Commit 21942a3

Browse files
authored
Merge pull request #445 from ember-learn/add-mastodon
Add link to Mastodon account
2 parents bd7953c + 22afe5d commit 21942a3

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

addon/components/es-footer-info.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212
<div class="footer-social hide-on-mobile">
1313
{{#each @socialLinks as |link|}}
14-
<a href={{link.href}} title={{link.title}} aria-label={{link.label}}>
14+
<a href={{link.href}} title={{link.title}} aria-label={{link.label}} rel="me">
1515
{{svg-jar link.class}} {{link.title}}
1616
</a>
1717
{{/each}}

addon/constants/es-footer.js

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ const socialLinks = [{
1515
href: 'https://discordapp.com/invite/zT3asNS',
1616
class: 'discord-logo',
1717
label: 'Join the Ember Community Discord'
18+
}, {
19+
title: 'Mastodon',
20+
href: 'https://hachyderm.io/@emberjs',
21+
class: 'mastodon-logo',
22+
label: 'Official Ember Mastodon Account'
1823
}];
1924

2025

public/images/icons/mastodon-logo.svg

+3
Loading

tests/integration/components/es-footer-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module('Integration | Component | es footer', function(hooks) {
1313
const footerSocialLinks = this.element.querySelectorAll('.footer-social a');
1414
const footerContribtuionsLinks = this.element.querySelectorAll('.footer-contributions a');
1515

16-
assert.equal(footerSocialLinks.length, 3, 'social links are loading');
16+
assert.equal(footerSocialLinks.length, 4, 'social links are loading');
1717
assert.equal(footerContribtuionsLinks.length, 5, 'contributors links are loading');
1818
});
1919
});

0 commit comments

Comments
 (0)