diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-06 13:03:52 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-06 13:03:52 -0600 |
commit | 26622407719470d8773e177148297378f8f3b07e (patch) | |
tree | e0748e16fd5bbf3631865f4673af7385921be189 /app | |
parent | 0ae1bc9796c9d337a9e5d90d4877302e20e7c8fa (diff) |
add drafts shortcut to web ui
Diffstat (limited to 'app')
3 files changed, 9 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/navigation_bar.js b/app/javascript/flavours/glitch/features/compose/components/navigation_bar.js index 59172bb23..c8699e2fa 100644 --- a/app/javascript/flavours/glitch/features/compose/components/navigation_bar.js +++ b/app/javascript/flavours/glitch/features/compose/components/navigation_bar.js @@ -30,6 +30,10 @@ export default class NavigationBar extends ImmutablePureComponent { href={ profileLink } ><FormattedMessage id='navigation_bar.edit_profile' defaultMessage='Edit profile' /></a> )} + + <Permalink className='drafts' href='/tags/self.draft' to='/timelines/tag/self.draft'> + <FormattedMessage id='navigation_bar.drafts' defaultMessage='Show drafts' /> + </Permalink> </div> ); }; diff --git a/app/javascript/flavours/glitch/styles/monsterpit.scss b/app/javascript/flavours/glitch/styles/monsterpit.scss index 1a53002b3..13c0441af 100644 --- a/app/javascript/flavours/glitch/styles/monsterpit.scss +++ b/app/javascript/flavours/glitch/styles/monsterpit.scss @@ -83,6 +83,10 @@ div.media-caption { } } +.drawer--account > .drafts { + margin-left: 1em; +} + div.drawer__inner__admin { margin-left: 10px; diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index c0daba827..17dbef3e9 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -242,6 +242,7 @@ "navigation_bar.direct": "Whispers", "navigation_bar.discover": "Discover", "navigation_bar.domain_blocks": "Hidden communities", + "navigation_bar.drafts": "Show drafts", "navigation_bar.edit_profile": "Edit profile", "navigation_bar.favourites": "Admirations", "navigation_bar.filters": "Muted words", |