location.href = historyUrl}>
+
{gettext('History')}
@@ -60,6 +61,14 @@ const DirOthers = ({ userPerm, repoID, currentRepoInfo }) => {
toggleDialog={toggleSettingsDialog}
/>
)}
+ {isRepoHistoryDialogOpen && (
+
+ )}
);
};
diff --git a/frontend/src/components/paginator.js b/frontend/src/components/paginator.js
index 4d74ca651e..42800e7dc6 100644
--- a/frontend/src/components/paginator.js
+++ b/frontend/src/components/paginator.js
@@ -13,10 +13,11 @@ const propTypes = {
gotoNextPage: PropTypes.func.isRequired,
hasNextPage: PropTypes.bool.isRequired,
resetPerPage: PropTypes.func.isRequired,
- curPerPage: PropTypes.number.isRequired
+ curPerPage: PropTypes.number.isRequired,
+ noURLUpdate: PropTypes.bool
};
-const PAGES = [25, 50, 100];
+const PER_PAGES = [25, 50, 100];
class Paginator extends Component {
@@ -45,6 +46,10 @@ class Paginator extends Component {
};
updateURL = (page, perPage) => {
+ const { noURLUpdate = false } = this.props;
+ if (noURLUpdate) {
+ return;
+ }
let url = new URL(location.href);
let searchParams = new URLSearchParams(url.search);
searchParams.set('page', page);
@@ -106,7 +111,7 @@ class Paginator extends Component {
- {PAGES.map(perPage => {
+ {PER_PAGES.map(perPage => {
return this.renderDropdownItem(curPerPage, perPage);
})}
diff --git a/frontend/src/css/commit-details.css b/frontend/src/css/commit-details.css
index f0255953ed..3dac6eb22a 100644
--- a/frontend/src/css/commit-details.css
+++ b/frontend/src/css/commit-details.css
@@ -1,3 +1,9 @@
-.commit-detail-item {
- list-style-type: none;
+.repo-commit-time {
+ font-size: .875rem;
+}
+
+.repo-commit-time .seafile-multicolor-icon-time {
+ width: 1rem;
+ height: 1rem;
+ color: #999;
}
diff --git a/frontend/src/css/repo-history.css b/frontend/src/css/repo-history.css
index b30cc6cd92..6f19c8f23f 100644
--- a/frontend/src/css/repo-history.css
+++ b/frontend/src/css/repo-history.css
@@ -39,3 +39,24 @@ body {
.go-back .sf3-font-down {
font-size: 1.75rem !important;
}
+
+/* for the dialog */
+.repo-snapshot-tip {
+ font-size: .875rem;
+ color: #666;
+}
+
+#repo-history-dialog.modal-dialog {
+ max-height: calc(100% - 3.5rem);
+ overflow: hidden;
+ height: calc(100% - 3.5rem);
+}
+
+#repo-history-dialog .modal-content {
+ max-height: 100%;
+ overflow: hidden;
+}
+
+#repo-history-dialog .modal-body {
+ overflow: auto;
+}