Sha256: 14f15ec7efe55fc45bcf6d7af2cf68fc76bcc076c2c38ebc77d3d23f2d4821af
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
<script> import { Link } from '@inertiajs/svelte' import <%= inertia_component_name %> from './<%= inertia_component_name %>.svelte' let { <%= singular_table_name %>, flash } = $props() </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.svelte.tt |