show history table of content

This commit is contained in:
Maren Süwer
2018-11-26 15:56:41 +01:00
parent 2f9d0f2793
commit 89291cdf46
7 changed files with 79 additions and 42 deletions

View File

@@ -64,7 +64,7 @@ class Content extends React.Component<Props, State> {
}
showHeader() {
const { file, classes, t } = this.props;
const { file, classes } = this.props;
const { showHistory, collapsed } = this.state;
const icon = collapsed ? "fa-angle-right" : "fa-angle-down";
@@ -146,10 +146,12 @@ class Content extends React.Component<Props, State> {
render() {
const { file, revision, repository, path, classes } = this.props;
const {showHistory} = this.state;
const { showHistory } = this.state;
const header = this.showHeader();
const content = showHistory ? <HistoryView/> : (
const content = showHistory ? (
<HistoryView file={file} repository={repository} />
) : (
<SourcesView
revision={revision}
file={file}