Added actor revision overviews to actor and user pages.

This commit is contained in:
2024-10-23 01:28:54 +02:00
parent d0cf9bf5d0
commit 05bd7b703d
21 changed files with 424 additions and 219 deletions

View File

@@ -1,23 +1,23 @@
<template>
<div class="content">
<div class="revs-header">
<h2 class="heading">Revisions for "{{ scene.title }}"</h2>
<h2 class="heading">Revisions for "{{ actor.name }}"</h2>
<div class="revs-actions">
<a
:href="`/scene/edit/${scene.id}/${scene.slug}`"
:href="`/actor/edit/${actor.id}/${actor.slug}`"
class="link"
>Edit scene</a>
>Edit actor</a>
<a
:href="`/scene/${scene.id}/${scene.slug}`"
:href="`/actor/${actor.id}/${actor.slug}`"
target="_blank"
class="link"
>Go to scene</a>
>Go to actor</a>
</div>
</div>
<Revisions context="scene" />
<Revisions context="actor" />
</div>
</template>
@@ -27,7 +27,7 @@ import { inject } from 'vue';
import Revisions from '#/components/edit/revisions.vue';
const pageContext = inject('pageContext');
const scene = pageContext.pageProps.scene;
const actor = pageContext.pageProps.actor;
</script>
<style scoped>