mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
add extension point to the content ui
This commit is contained in:
@@ -104,7 +104,7 @@ class Content extends React.Component<Props, State> {
|
|||||||
|
|
||||||
showMoreInformation() {
|
showMoreInformation() {
|
||||||
const collapsed = this.state.collapsed;
|
const collapsed = this.state.collapsed;
|
||||||
const { classes, file, revision, t } = this.props;
|
const { classes, file, revision, t, repository } = this.props;
|
||||||
const date = <DateFromNow date={file.lastModified} />;
|
const date = <DateFromNow date={file.lastModified} />;
|
||||||
const description = file.description ? (
|
const description = file.description ? (
|
||||||
<p>
|
<p>
|
||||||
@@ -151,7 +151,7 @@ class Content extends React.Component<Props, State> {
|
|||||||
</tr>
|
</tr>
|
||||||
<ExtensionPoint
|
<ExtensionPoint
|
||||||
name="repos.content.metadata"
|
name="repos.content.metadata"
|
||||||
props={{ file }}
|
props={{ file , repository}}
|
||||||
>
|
>
|
||||||
</ExtensionPoint>
|
</ExtensionPoint>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user