Sha256: 2bc90ea63c6f4fbf3280d72d1b10ce5b6f28899797632db852df37a021da4e51
Contents?: true
Size: 815 Bytes
Versions: 8
Compression:
Stored size: 815 Bytes
Contents
<script> export let <%= singular_table_name %> </script> <div> <% attributes.reject(&:password_digest?).each do |attribute| -%> <p class="my-5"> <strong class="block font-medium mb-1"><%= attribute.human_name %>:</strong> <% if attribute.attachment? -%> {#if <%= singular_table_name %>.<%= attribute.column_name %>} <a href={<%= singular_table_name %>.<%= attribute.column_name %>.url}> {<%= singular_table_name %>.<%= attribute.column_name %>.filename} </a> {/if} </p> <% elsif attribute.attachments? -%> </p> {#each <%= singular_table_name %>.<%= attribute.column_name %> as { url, filename }} <div> <a href={url}>{filename}</a> </div> {/each} <% else -%> {<%= singular_table_name %>.<%= attribute.column_name %>} </p> <% end -%> <% end -%> </div>
Version data entries
8 entries across 8 versions & 2 rubygems