|
@@ -4,6 +4,7 @@ import { IRevisionHasPageId } from '@growi/core';
|
|
|
import { createPatch } from 'diff';
|
|
import { createPatch } from 'diff';
|
|
|
import { html, Diff2HtmlConfig } from 'diff2html';
|
|
import { html, Diff2HtmlConfig } from 'diff2html';
|
|
|
import { useTranslation } from 'next-i18next';
|
|
import { useTranslation } from 'next-i18next';
|
|
|
|
|
+import Link from 'next/link';
|
|
|
|
|
|
|
|
import UserDate from '../User/UserDate';
|
|
import UserDate from '../User/UserDate';
|
|
|
|
|
|
|
@@ -46,16 +47,19 @@ export const RevisionDiff = (props: RevisioinDiffProps): JSX.Element => {
|
|
|
<div className="row">
|
|
<div className="row">
|
|
|
<div className="col comparison-source-wrapper pt-1 px-0">
|
|
<div className="col comparison-source-wrapper pt-1 px-0">
|
|
|
<span className="comparison-source pr-3">{t('page_history.comparing_source')}</span><UserDate dateTime={previousRevision.createdAt} />
|
|
<span className="comparison-source pr-3">{t('page_history.comparing_source')}</span><UserDate dateTime={previousRevision.createdAt} />
|
|
|
- <a href={`?revisionId=${previousRevision._id}`} className="ml-3">
|
|
|
|
|
- <i className="icon-login"></i>
|
|
|
|
|
- </a>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <Link href={`?revisionId=${previousRevision._id}`}>
|
|
|
|
|
+ <a className="ml-3">
|
|
|
|
|
+ <i className="icon-login"></i>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </Link>
|
|
|
</div>
|
|
</div>
|
|
|
<div className="col comparison-target-wrapper pt-1">
|
|
<div className="col comparison-target-wrapper pt-1">
|
|
|
<span className="comparison-target pr-3">{t('page_history.comparing_target')}</span><UserDate dateTime={currentRevision.createdAt} />
|
|
<span className="comparison-target pr-3">{t('page_history.comparing_target')}</span><UserDate dateTime={currentRevision.createdAt} />
|
|
|
- <a href={`?revisionId=${currentRevision._id}`} className="ml-3">
|
|
|
|
|
- <i className="icon-login"></i>
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
+ <Link href={`?revisionId=${currentRevision._id}`}>
|
|
|
|
|
+ <a className="ml-3">
|
|
|
|
|
+ <i className="icon-login"></i>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </Link>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|