1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

wikis permission set (#2799)

This commit is contained in:
王健辉
2019-01-11 12:41:30 +08:00
committed by Daniel Pan
parent c6cd6bb2c4
commit 1c4f48eef3
13 changed files with 104 additions and 29 deletions

View File

@@ -5,6 +5,7 @@ import CommonToolbar from '../../components/toolbar/common-toolbar';
import MarkdownViewer from '../../components/markdown-viewer';
import TreeDirView from '../../components/tree-dir-view/tree-dir-view';
let loginUser = window.app.pageOptions.username;
const propTypes = {
content: PropTypes.string,
lastModified: PropTypes.string,
@@ -88,11 +89,13 @@ class MainPanel extends Component {
<button className="btn btn-secondary operation-item" title="Edit File" onClick={this.onEditClick}>{gettext('Edit Page')}</button>
}
</div>
<CommonToolbar
repoID={repoID}
onSearchedClick={this.props.onSearchedClick}
searchPlaceholder={gettext('Search files in this library')}
/>
{loginUser &&
<CommonToolbar
repoID={repoID}
onSearchedClick={this.props.onSearchedClick}
searchPlaceholder={gettext('Search files in this library')}
/>
}
</div>
<div className="cur-view-container">
<div className="cur-view-path">