1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

fix history page

This commit is contained in:
Michael An
2019-04-26 15:33:11 +08:00
parent b4c8d7d839
commit ca55562bbc
2 changed files with 18 additions and 18 deletions

View File

@@ -68,6 +68,7 @@
width: 16px;
height: 16px;
border-radius: 2px;
vertical-align: middle;
}
.old-history-main .commit-list .username {

View File

@@ -203,15 +203,13 @@ class FileHistory extends React.Component {
</div>
<div id="main" onScroll={this.onScrollHandler}>
<div className="old-history-main">
<div>
<Fragment>
<a href="javascript:window.history.back()" className="go-back" title="Back">
<span className="fas fa-chevron-left"></span>
</a>
<h2><span className="file-name">{fileName}</span>{' '}{gettext('History Versions')}</h2>
</div>
<div>
{this.state.isLoading && <Loading />}
{!this.state.isLoading &&
</Fragment>
<Fragment>
<table className="commit-list">
<thead>
<tr>
@@ -221,6 +219,7 @@ class FileHistory extends React.Component {
<th width="5%" ></th>
</tr>
</thead>
{!this.state.isLoading &&
<tbody>
{this.state.historyList.map((item, index) => {
return (
@@ -235,13 +234,13 @@ class FileHistory extends React.Component {
);
})}
</tbody>
</table>
}
{this.state.isReloadingData && <Loading />}
</table>
{(this.state.isReloadingData || this.state.isLoading) && <Loading />}
{this.state.nextCommit && !this.state.isLoading && !this.state.isReloadingData &&
<Button className="get-more-btn" onClick={this.reloadMore}>{gettext('More')}</Button>
}
</div>
</Fragment>
</div>
</div>
</Fragment>