mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
add (#3151)
This commit is contained in:
@@ -38,13 +38,13 @@ class MarkdownViewerToolbar extends React.Component {
|
|||||||
{(this.props.hasDraft && !this.props.isDraft) &&
|
{(this.props.hasDraft && !this.props.isDraft) &&
|
||||||
<div className='seafile-btn-view-review'>
|
<div className='seafile-btn-view-review'>
|
||||||
<div className='tag tag-green'>{gettext('This file is in draft stage.')}
|
<div className='tag tag-green'>{gettext('This file is in draft stage.')}
|
||||||
<a className="ml-2" onMouseDown={this.props.editorUtilities.goDraftPage}>{gettext('View draft')}</a></div>
|
<a className="ml-2" onMouseDown={this.props.editorUtilities.goDraftPage}>{gettext('View Draft')}</a></div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div className="topbar-btn-container">
|
<div className="topbar-btn-container">
|
||||||
{ (!this.props.hasDraft && !this.props.isDraft) &&
|
{ (!this.props.hasDraft && !this.props.isDraft) &&
|
||||||
<button onMouseDown={this.props.toggleNewDraft} className="btn btn-success btn-new-draft">
|
<button onMouseDown={this.props.toggleNewDraft} className="btn btn-success btn-new-draft">
|
||||||
{gettext('New draft')}</button>
|
{gettext('New Draft')}</button>
|
||||||
}
|
}
|
||||||
{this.props.collabUsers.length > 0 && <CollabUsersButton className={'collab-users-dropdown'}
|
{this.props.collabUsers.length > 0 && <CollabUsersButton className={'collab-users-dropdown'}
|
||||||
users={this.props.collabUsers} id={'usersButton'} />}
|
users={this.props.collabUsers} id={'usersButton'} />}
|
||||||
@@ -68,7 +68,7 @@ class MarkdownViewerToolbar extends React.Component {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
this.props.showFileHistory && <IconButton id={'historyButton'}
|
this.props.showFileHistory && <IconButton id={'historyButton'}
|
||||||
text={gettext('File history')} onMouseDown={this.props.toggleHistory} icon={'fa fa-history'}/>
|
text={gettext('File History')} onMouseDown={this.props.toggleHistory} icon={'fa fa-history'}/>
|
||||||
}
|
}
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user