mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
🎨 staff only link to manage trending tags and administrate user
This commit is contained in:
parent
9c968a0b23
commit
a572fd707a
@ -16,7 +16,7 @@ import { Audio, MediaGallery, Video } from '../features/ui/util/async-components
|
||||
import { HotKeys } from 'react-hotkeys';
|
||||
import classNames from 'classnames';
|
||||
import Icon from 'mastodon/components/icon';
|
||||
import { displayMedia } from '../initial_state';
|
||||
import { displayMedia, isStaff } from '../initial_state';
|
||||
// We use the component (and not the container) since we do not want
|
||||
// to use the progress bar to show download progress
|
||||
import Bundle from '../features/ui/components/bundle';
|
||||
@ -542,6 +542,12 @@ class Status extends ImmutablePureComponent {
|
||||
role='presentation'
|
||||
/>
|
||||
<div className='status__info'>
|
||||
|
||||
{isStaff && (<div className='administrate-stuff pull-left'>
|
||||
|
||||
<i className='fa fa-gears'></i >
|
||||
</div >
|
||||
)}
|
||||
<a
|
||||
href={status.get('url')}
|
||||
className='status__relative-time'
|
||||
|
@ -6,6 +6,7 @@ import { Link } from 'react-router-dom';
|
||||
import { invitesEnabled, repository, source_url, version } from 'mastodon/initial_state';
|
||||
import { logOut } from 'mastodon/utils/log_out';
|
||||
import { openModal } from 'mastodon/actions/modal';
|
||||
import { isStaff } from '../../../initial_state';
|
||||
|
||||
const messages = defineMessages({
|
||||
logoutMessage: { id: 'confirmations.logout.message', defaultMessage: 'Are you sure you want to log out?' },
|
||||
@ -55,13 +56,17 @@ class LinkFooter extends React.PureComponent {
|
||||
<i className='fa fa-paper-plane' />
|
||||
contactez nous</a >
|
||||
</li >
|
||||
<li >
|
||||
{isStaff && (
|
||||
<li >
|
||||
|
||||
<a href='/admin/tags?pending_review=1'>
|
||||
<i className='fa fa-fire' />
|
||||
Trending hashtags</a >
|
||||
<hr />
|
||||
</li >
|
||||
|
||||
)}
|
||||
|
||||
<a href='/admin/tags?pending_review=1'>
|
||||
<i className='fa fa-fire' />
|
||||
Trending hashtags</a >
|
||||
<hr />
|
||||
</li >
|
||||
{invitesEnabled && <li ><a
|
||||
href='/invites'
|
||||
target='_blank'
|
||||
|
Loading…
Reference in New Issue
Block a user