Sha256: 96f52130042846689dd691b08d6a726949d09a8e3e103ace19110ed192c7de1e
Contents?: true
Size: 889 Bytes
Versions: 6
Compression:
Stored size: 889 Bytes
Contents
<template> <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? -%> <a v-if="<%= singular_table_name %>.<%= attribute.column_name %>" :href="<%= singular_table_name %>.<%= attribute.column_name %>.url"> {{ <%= singular_table_name %>.<%= attribute.column_name %>.filename }} </a> </p> <% elsif attribute.attachments? -%> </p> <div v-for="file in <%= singular_table_name %>.<%= attribute.column_name %>"> <a :href="file.url">{{ file.filename }}</a> </div> <% else -%> {{ <%= singular_table_name %>.<%= attribute.column_name %> }} </p> <% end -%> <% end -%> </div> </template> <script setup> const { <%= singular_table_name %> } = defineProps(['<%= singular_table_name %>']) </script>
Version data entries
6 entries across 6 versions & 1 rubygems