Sha256: a8c5d475fe869c4e106e6f22979a274a13cf1b3b81228ca3337552d785f76fdf
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
<script lang="ts"> import { Link } from '@inertiajs/svelte' import <%= inertia_component_name %> from './<%= inertia_component_name %>.svelte' import type { <%= inertia_model_type %> } from './types' let { <%= singular_table_name %>, flash } = $props<{ <%= singular_table_name %>: <%= inertia_model_type %> flash: { notice?: string } }>() </script> <svelte:head> <title><%= human_name %> #{<%= singular_table_name %>.id}</title> </svelte:head> {#if flash.notice} <p class="notice">{flash.notice}</p> {/if} <h1><%= human_name %> #{<%= singular_table_name %>.id}</h1> <<%= inertia_component_name %> {<%= singular_table_name %>} /> <div> <Link href={`<%= js_edit_resource_path %>`}>Edit this <%= human_name.downcase %></Link> | <Link href="<%= js_resources_path %>">Back to <%= human_name.pluralize.downcase %></Link> <br /> <Link href={`<%= js_resource_path %>`} method="delete"> Destroy this <%= human_name.downcase %> </Link> </div> <style> .notice { color: green; } </style>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inertia_rails-3.5.0 | lib/generators/inertia_templates/scaffold/templates/svelte/Show.ts.svelte.tt |