Sha256: ec698db8734bcf9681564c36826fc96669eb905fcf8ab0d0eb0fcef741830818
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 Bytes
Contents
<script> let { <%= singular_table_name %> } = $props() </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
2 entries across 2 versions & 2 rubygems