mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 18:03:48 +00:00
[repo history] added 'go back' & etc.
This commit is contained in:
@@ -26,3 +26,10 @@ body {
|
|||||||
.commit-detail-item {
|
.commit-detail-item {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
.go-back {
|
||||||
|
color: #c0c0c0;
|
||||||
|
font-size: 1.75rem;
|
||||||
|
position: absolute;
|
||||||
|
left: -40px;
|
||||||
|
top: -5px;
|
||||||
|
}
|
||||||
|
@@ -91,6 +91,11 @@ class RepoHistory extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goBack = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
window.history.back();
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
@@ -101,10 +106,13 @@ class RepoHistory extends React.Component {
|
|||||||
</a>
|
</a>
|
||||||
<CommonToolbar onSearchedClick={this.onSearchedClick} />
|
<CommonToolbar onSearchedClick={this.onSearchedClick} />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-auto container-fluid pt-4">
|
<div className="flex-auto container-fluid pt-4 pb-6 o-auto">
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-md-10 offset-md-1">
|
<div className="col-md-10 offset-md-1">
|
||||||
<h2 dangerouslySetInnerHTML={{__html: Utils.generateDialogTitle(gettext('{placeholder} Modification History'), repoName)}}></h2>
|
<h2 dangerouslySetInnerHTML={{__html: Utils.generateDialogTitle(gettext('{placeholder} Modification History'), repoName)}}></h2>
|
||||||
|
<a href="#" className="go-back" title={gettext('Back')} onClick={this.goBack}>
|
||||||
|
<span className="fas fa-chevron-left"></span>
|
||||||
|
</a>
|
||||||
{userPerm == 'rw' && <p className="tip">{gettext('Tip: a snapshot will be generated after modification, which records the library state after the modification.')}</p>}
|
{userPerm == 'rw' && <p className="tip">{gettext('Tip: a snapshot will be generated after modification, which records the library state after the modification.')}</p>}
|
||||||
<Content
|
<Content
|
||||||
data={this.state}
|
data={this.state}
|
||||||
|
Reference in New Issue
Block a user