2024-10-06 00:45:56 +00:00
|
|
|
<template>
|
|
|
|
<div class="content">
|
|
|
|
<div class="revs-header">
|
|
|
|
<h2 class="heading">Revisions for "{{ scene.title }}"</h2>
|
|
|
|
|
2024-10-08 19:30:55 +00:00
|
|
|
<div class="revs-actions">
|
|
|
|
<a
|
|
|
|
:href="`/scene/edit/${scene.id}/${scene.slug}`"
|
|
|
|
class="link"
|
|
|
|
>Edit scene</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
:href="`/scene/${scene.id}/${scene.slug}`"
|
|
|
|
target="_blank"
|
|
|
|
class="link"
|
|
|
|
>Go to scene</a>
|
|
|
|
</div>
|
2024-10-06 00:45:56 +00:00
|
|
|
</div>
|
|
|
|
|
2024-10-08 19:30:55 +00:00
|
|
|
<Revisions context="scene" />
|
2024-10-06 00:45:56 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { inject } from 'vue';
|
|
|
|
|
|
|
|
import Revisions from '#/components/edit/revisions.vue';
|
|
|
|
|
|
|
|
const pageContext = inject('pageContext');
|
|
|
|
const scene = pageContext.pageProps.scene;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.content {
|
|
|
|
padding: 1rem;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.revs-header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2024-10-08 19:30:55 +00:00
|
|
|
|
|
|
|
.heading {
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.revs-actions {
|
|
|
|
display: flex;
|
|
|
|
gap: 2rem;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(--compact) {
|
|
|
|
.revs-header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2024-10-06 00:45:56 +00:00
|
|
|
}
|
|
|
|
</style>
|