diff --git a/scm-ui/src/repos/sources/containers/Content.js b/scm-ui/src/repos/sources/containers/Content.js index 7eaaa51ad7..18336d39ad 100644 --- a/scm-ui/src/repos/sources/containers/Content.js +++ b/scm-ui/src/repos/sources/containers/Content.js @@ -16,6 +16,7 @@ import DownloadViewer from "../components/content/DownloadViewer"; import FileSize from "../components/FileSize"; import injectSheet from "react-jss"; import classNames from "classnames"; +import { ExtensionPoint, binder } from "@scm-manager/ui-extensions"; type Props = { t: string => string, @@ -67,6 +68,7 @@ class Content extends React.Component { const { file } = this.props; getContentType(file._links.self.href) .then(result => { + console.log(result); if (result.error) { this.setState({ ...this.state, @@ -95,8 +97,6 @@ class Content extends React.Component { showHeader() { const { file, classes } = this.props; const collapsed = this.state.collapsed; - const date = ; - const icon = collapsed ? "fa-angle-right" : "fa-angle-down"; const fileSize = file.directory ? "" : ; @@ -161,7 +161,7 @@ class Content extends React.Component { } showContent() { - const { file } = this.props; + const { file, revision } = this.props; const contentType = this.state.contentType; const language = this.state.language; if (contentType.startsWith("image/")) { @@ -169,7 +169,14 @@ class Content extends React.Component { } else if (language) { return ; } else { - return ; + return ( + + + + ); } }