Expanded edit fields. Added revision history to scene and user pages.

This commit is contained in:
2024-10-06 02:45:56 +02:00
parent 8bf9e22b39
commit 8f843f321d
57 changed files with 1664 additions and 156 deletions

View File

@@ -286,7 +286,7 @@
v-if="user"
class="icon-link"
target="_blank"
:href="`/user/${user.username}/summaries?t=${selectedTemplate}`"
:href="`/user/${user.username}/templates?t=${selectedTemplate}`"
>
<Icon
v-tooltip="'Edit templates'"
@@ -319,6 +319,23 @@
>{{ userTemplate.name }}</li>
</ul>
</div>
<div
v-if="user && user.role !== 'user'"
class="scene-actions section"
>
<a
:href="`/scene/edit/${scene.id}`"
target="_blank"
class="link"
>Edit scene</a>
<a
:href="`/scene/revisions/${scene.id}/${scene.slug}`"
target="_blank"
class="link"
>Revisions</a>
</div>
</div>
</div>
</div>
@@ -670,6 +687,13 @@ function copySummary() {
}
}
.scene-actions {
display: flex;
justify-content: center;
gap: 2rem;
margin-top: 1rem;
}
.icon-link {
display: flex;
height: auto;