This commit is contained in:
2025-06-19 23:12:34 +09:00
parent 0c4ee9744e
commit 053dae0c25
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ const TopNav: React.FC = ({ user, setUser }: Props) => {
{/^\/wiki\/(?!new|changes)[^\/]+/.test (location.pathname) &&
<>
<Separator />
<Link to={`/posts?tags=${ location.pathname.split ('/')[2] }`} className={subClass}>稿</Link>
<Link to={`/posts?tags=${ location.pathname.split ('/')[2] }`} className={subClass}></Link>
<Link to={`/wiki/changes?id=${ wikiId }`} className={subClass}></Link>
<Link to={`/wiki/${ wikiId || location.pathname.split ('/')[2] }/edit`} className={subClass}></Link>
</>}
+11 -5
View File
@@ -33,9 +33,12 @@ export default () => {
<tbody>
{changes.map (change => (
<tr key={change.sha}>
<td></td>
<td>{change.change_type === 'update' && (
<Link>
</Link>)}</td>
<td className="p-2">
<Link to={`/wiki/${ encodeURIComponent (change.wiki_page.title) }`}
<Link to={`/wiki/${ encodeURIComponent (change.wiki_page.title) }?version=${ change.sha }`}
className="text-blue-400 hover:underline">
{change.wiki_page.title}
</Link>
@@ -44,9 +47,12 @@ export default () => {
{(() => {
switch (change.change_type)
{
case 'create': return '新規'
case 'update': return '新'
case 'delete': return '削除'
case 'create':
return '新'
case 'update':
return '更新'
case 'delete':
return '削除'
}
}) ()}
</td>