From fddb7a99ec73e2ebf0bb8344fb401855db9b2675 Mon Sep 17 00:00:00 2001 From: noellabo Date: Tue, 20 Aug 2019 19:03:27 +0900 Subject: [PATCH] Add information links --- .../mastodon/features/getting_started/index.js | 18 +++++++++++++++++- .../features/ui/components/navigation_panel.js | 2 ++ app/javascript/mastodon/locales/en.json | 3 +++ app/javascript/mastodon/locales/ja.json | 3 +++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js index c14c7fd48..3a0478e79 100644 --- a/app/javascript/mastodon/features/getting_started/index.js +++ b/app/javascript/mastodon/features/getting_started/index.js @@ -37,6 +37,8 @@ const messages = defineMessages({ menu: { id: 'getting_started.heading', defaultMessage: 'Getting started' }, group_directory: { id: 'getting_started.group_directory', defaultMessage: 'Group directory' }, profile_directory: { id: 'getting_started.directory', defaultMessage: 'Profile directory' }, + information_acct: { id: 'navigation_bar.information_acct', defaultMessage: 'Fedibird info' }, + hashtag_fedibird: { id: 'navigation_bar.hashtag_fedibird', defaultMessage: 'fedibird' }, }); const mapStateToProps = state => ({ @@ -119,7 +121,14 @@ class GettingStarted extends ImmutablePureComponent { } navItems.push( - , + , + , + ); + + height += 34 + 48*2; + + navItems.push( + ); height += 34; @@ -137,6 +146,13 @@ class GettingStarted extends ImmutablePureComponent { height += 48; } + + navItems.push( + , + , + ); + + height += 48*2; } if (multiColumn && !columns.find(item => item.get('id') === 'HOME')) { diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.js b/app/javascript/mastodon/features/ui/components/navigation_panel.js index 35481c37f..238d369f2 100644 --- a/app/javascript/mastodon/features/ui/components/navigation_panel.js +++ b/app/javascript/mastodon/features/ui/components/navigation_panel.js @@ -16,6 +16,8 @@ const NavigationPanel = () => ( + + diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index 8daf8d507..037eb60fa 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -323,7 +323,10 @@ "navigation_bar.filters": "Muted words", "navigation_bar.follow_requests": "Follow requests", "navigation_bar.follows_and_followers": "Follows and followers", + "navigation_bar.hashtag_fedibird": "Fedibird topics", "navigation_bar.info": "About this server", + "navigation_bar.information": "Information", + "navigation_bar.information_acct": "Fedibird info", "navigation_bar.keyboard_shortcuts": "Hotkeys", "navigation_bar.lists": "Lists", "navigation_bar.logout": "Logout", diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json index 1f2586866..0d3b47d71 100644 --- a/app/javascript/mastodon/locales/ja.json +++ b/app/javascript/mastodon/locales/ja.json @@ -323,7 +323,10 @@ "navigation_bar.filters": "フィルター設定", "navigation_bar.follow_requests": "フォローリクエスト", "navigation_bar.follows_and_followers": "フォロー・フォロワー", + "navigation_bar.hashtag_fedibird": "Fedibirdに関する話題", "navigation_bar.info": "このサーバーについて", + "navigation_bar.information": "お知らせと情報", + "navigation_bar.information_acct": "Fedibirdインフォメーション", "navigation_bar.keyboard_shortcuts": "ホットキー", "navigation_bar.lists": "リスト", "navigation_bar.logout": "ログアウト",