Sha256: 472c0bb300680433ff546a10d1fda41bce6e47d89c0e51e2434db17292c4a727
Contents?: true
Size: 834 Bytes
Versions: 2
Compression:
Stored size: 834 Bytes
Contents
<script> import { Link } from '@inertiajs/svelte' import <%= inertia_component_name %> from './<%= inertia_component_name %>.svelte' let { <%= plural_table_name %>, flash } = $props() </script> <svelte:head> <title><%= human_name.pluralize %></title> </svelte:head> {#if flash.notice} <p class="notice">{flash.notice}</p> {/if} <h1><%= human_name.pluralize %></h1> <div> {#each <%= plural_table_name %> as <%= singular_table_name %> (<%= singular_table_name %>.id)} <div> <<%= inertia_component_name %> {<%= singular_table_name %>} /> <p> <Link href={`<%= js_resource_path %>`}>Show this <%= human_name.downcase %></Link> </p> </div> {/each} </div> <Link href="<%= js_new_resource_path %>">New <%= human_name.downcase %></Link> <style> .notice { color: green; } </style>
Version data entries
2 entries across 2 versions & 2 rubygems