-
{Utils.generateDialogTitle(gettext('{placeholder} Modification History'), repoName)}
+
diff --git a/frontend/src/repo-snapshot.js b/frontend/src/repo-snapshot.js
index 999a5bd9b6..a61f475e50 100644
--- a/frontend/src/repo-snapshot.js
+++ b/frontend/src/repo-snapshot.js
@@ -91,26 +91,26 @@ class RepoSnapshot extends React.Component {
const pathList = path.split('/');
if (path == '/') {
- return repoName;
+ return
{repoName};
}
return (
- {repoName}
- /
+ {repoName}
+ /
{pathList.map((item, index) => {
if (index > 0 && index != pathList.length - 1) {
return (
- {pathList[index]}
- /
+ {pathList[index]}
+ /
);
}
return null;
}
)}
- {pathList[pathList.length - 1]}
+ {pathList[pathList.length - 1]}
);
};
@@ -129,6 +129,8 @@ class RepoSnapshot extends React.Component {
render() {
const { isConfirmDialogOpen, folderPath } = this.state;
+ let title = gettext('{placeholder} Snapshot');
+ title = title.replace('{placeholder}', '
' + Utils.HTMLescape(repoName) + '');
return (
@@ -142,7 +144,7 @@ class RepoSnapshot extends React.Component {
- {Utils.generateDialogTitle(gettext('{placeholder} Snapshot'), repoName)}
+
({commitTime})
@@ -150,8 +152,8 @@ class RepoSnapshot extends React.Component {
{folderPath == '/' && (
-
{commitDesc}
-
+
{commitDesc}
+
{showAuthor ? (
@@ -163,9 +165,9 @@ class RepoSnapshot extends React.Component {
)}
-
{gettext('Current path: ')}{this.renderPath()}
+
{gettext('Current path: ')}{this.renderPath()}
{(folderPath == '/' && canRestoreRepo) &&
-
+
}