Sha256: 38afdffe5d936d2bebd2a99e5565de314daf1a9bba3016cce5980fd06df6060a

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

- content_for :title do
  = @<%= singular_name %>.to_s
- content_for :actions do
  = @<%= singular_name %>.destroy_link
  .ms-1
  = @<%= singular_name %>.edit_link

table.table.table-borderless.table-sm.w-auto.mb-0.m-3
  - atributos_para_mostrar.each do |att|
    tr
      th = @clase_modelo.human_attribute_name(att)
      td = @<%= singular_name %>.send(att)
<%- if options[:trackeo_de_usuarios] -%>
  tr
    th = t('attributes.creado_por')
    td = @<%= singular_name %>.creado_por
<%- end -%>
  tr
    th = t('attributes.created_at')
    td = dmy_time @<%= singular_name %>.created_at
<%- if options[:trackeo_de_usuarios] -%>
  tr
    th = t('attributes.actualizado_por')
    td = @<%= singular_name %>.actualizado_por
<%- end -%>
  tr
    th = t('attributes.updated_at')
    td = dmy_time @<%= singular_name %>.updated_at
<%- if options[:paranoia] -%>
  tr
    th = t('attributes.deleted_at')
    td = dmy_time @<%= singular_name %>.deleted_at
<%- end -%>
<%- if options[:discard] -%>
  tr
    th = t('attributes.discarded_at')
    td = dmy_time @<%= singular_name %>.discarded_at
<%- end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pg_rails-7.0.5 pg_scaffold/lib/generators/pg_slim/templates/show.html.slim
pg_rails-7.0.4 pg_scaffold/lib/generators/pg_slim/templates/show.html.slim
pg_rails-7.0.3 pg_scaffold/lib/generators/pg_slim/templates/show.html.slim
pg_rails-7.0.2 pg_scaffold/lib/generators/pg_slim/templates/show.html.slim