mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 05:55:44 +01:00
addHistory
This commit is contained in:
@@ -95,18 +95,19 @@ class Content extends React.Component<Props, State> {
|
||||
<span className={classes.pointer} onClick={this.toggleCollapse}>
|
||||
<article className="media">
|
||||
<div className="media-left">
|
||||
<i className={classNames("fa", icon)}/>
|
||||
<i className={classNames("fa", icon)} />
|
||||
</div>
|
||||
<div className="media-content">
|
||||
<div className="content">{file.name}</div>
|
||||
</div>
|
||||
<p className="media-right">
|
||||
<a className="is-hidden-mobile" href="#">
|
||||
<a href="#">
|
||||
<span className="icon is-medium">
|
||||
<i className="fas fa-history"></i>
|
||||
</span>
|
||||
|
||||
{t("sources.content.historyLink")}
|
||||
<i className="fas fa-history" />
|
||||
</span>
|
||||
<span className="is-hidden-mobile">
|
||||
{t("sources.content.historyLink")}
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</article>
|
||||
|
||||
36
scm-ui/src/repos/sources/containers/FileHistory.js
Normal file
36
scm-ui/src/repos/sources/containers/FileHistory.js
Normal file
@@ -0,0 +1,36 @@
|
||||
//@flow
|
||||
|
||||
import React from "react";
|
||||
import { translate } from "react-i18next";
|
||||
import type { File, Repository } from "@scm-manager/ui-types";
|
||||
import {
|
||||
DateFromNow,
|
||||
ErrorNotification,
|
||||
Loading
|
||||
} from "@scm-manager/ui-components";
|
||||
import { connect } from "react-redux";
|
||||
import ImageViewer from "../components/content/ImageViewer";
|
||||
import SourcecodeViewer from "../components/content/SourcecodeViewer";
|
||||
import DownloadViewer from "../components/content/DownloadViewer";
|
||||
import FileSize from "../components/FileSize";
|
||||
import injectSheet from "react-jss";
|
||||
import classNames from "classnames";
|
||||
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
||||
import { getContentType } from "./contentType";
|
||||
|
||||
type Props = {
|
||||
classes: any,
|
||||
t: string => string
|
||||
};
|
||||
|
||||
class FileHistory extends React.Component<Props> {
|
||||
componentDidMount() {}
|
||||
|
||||
render() {
|
||||
return "History";
|
||||
}
|
||||
}
|
||||
|
||||
const mapStateToProps = (state: any, ownProps: Props) => {};
|
||||
|
||||
export default connect(mapStateToProps)(translate("repos")(FileHistory));
|
||||
Reference in New Issue
Block a user