From 9e30762d129fa161f7249ef6760b90db058a75ab Mon Sep 17 00:00:00 2001 From: Shubham Upreti Date: Tue, 15 Sep 2020 02:33:42 +0530 Subject: [PATCH 1/2] add telegram & gitter social links --- app/models/setting.js | 2 ++ app/templates/components/footer-main.hbs | 10 ++++++++++ .../forms/admin/content/social-links-form.hbs | 16 ++++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/app/models/setting.js b/app/models/setting.js index bb2256fd8f9..2dd0010ca05 100644 --- a/app/models/setting.js +++ b/app/models/setting.js @@ -74,6 +74,8 @@ export default ModelBase.extend({ facebookUrl : attr('string'), instagramUrl : attr('string'), patreonUrl : attr('string'), + gitterUrl : attr('string'), + telegramUrl : attr('string'), youtubeUrl : attr('string'), androidAppUrl : attr('string'), frontendUrl : attr('string'), diff --git a/app/templates/components/footer-main.hbs b/app/templates/components/footer-main.hbs index 02f4f627ee7..d6d1beaad63 100644 --- a/app/templates/components/footer-main.hbs +++ b/app/templates/components/footer-main.hbs @@ -80,6 +80,16 @@ {{t 'Patreon'}} {{/if}} + {{#if this.socialLinks.gitterUrl}} + + {{t 'Gitter'}} + + {{/if}} + {{#if this.socialLinks.telegramUrl}} + + {{t 'Telegram'}} + + {{/if}} diff --git a/app/templates/components/forms/admin/content/social-links-form.hbs b/app/templates/components/forms/admin/content/social-links-form.hbs index bd56a1a2808..9277bf22bd2 100644 --- a/app/templates/components/forms/admin/content/social-links-form.hbs +++ b/app/templates/components/forms/admin/content/social-links-form.hbs @@ -61,5 +61,21 @@ @isSocialLink={{true}} @inputId="patreon" /> +
+ + +
+
+ + +
From 03f77aabc7f3da0183d4ad49461f305d9b2f94b1 Mon Sep 17 00:00:00 2001 From: Shubham Upreti Date: Thu, 17 Sep 2020 00:03:13 +0530 Subject: [PATCH 2/2] Add segmented urls --- app/models/setting.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/setting.js b/app/models/setting.js index 2dd0010ca05..d00a9c1cd63 100644 --- a/app/models/setting.js +++ b/app/models/setting.js @@ -108,6 +108,8 @@ export default ModelBase.extend({ segmentedFacebookUrl : computedSegmentedLink.bind(this)('facebookUrl'), segmentedInstagramUrl : computedSegmentedLink.bind(this)('instagramUrl'), segmentedPatreonUrl : computedSegmentedLink.bind(this)('patreonUrl'), + segmentedGitterUrl : computedSegmentedLink.bind(this)('gitterUrl'), + segmentedTelegramUrl : computedSegmentedLink.bind(this)('telegramUrl'), segmentedTwitterUrl : computedSegmentedLink.bind(this)('twitterUrl'), segmentedGoogleUrl : computedSegmentedLink.bind(this)('googleUrl'), segmentedYoutubeUrl : computedSegmentedLink.bind(this)('youtubeUrl'),