Sha256: 7e57e93fdddbe4dfefeb21de0ee205aada77affd9e5e1a39085cc507b77315e8
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
- title t('.title') <% if turbo = defined? Stimulus -%> %p.nav{data: {controller: "navigation"}} <% else -%> %p.nav <% end -%> <% if options[:cancan] -%> - if can? :index, <%= class_name %> <% if turbo -%> = link_to t('Back'), <%= plural_name %>_path, class: 'back', data: {action: "navigation#back", turbo_action: 'replace'} <% end -%> = link_to t('index'), <%= index_helper %>_path, class: 'index' <% if turbo -%> - else = link_to t('Back'), '', class: 'back', data: {action: "navigation#back", turbo_action: 'replace'} <% end -%> - if can? :edit, @<%= singular_table_name %> = link_to t('edit'), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'edit' <% else -%> <% if turbo -%> = link_to t('Back'), <%= plural_name %>_path, class: 'back', data: {action: "navigation#back", turbo_action: 'replace'} <% end -%> = link_to t('index'), <%= plural_name %>_path, class: 'index' = link_to t('edit'), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'edit' <% end -%> %dl <% for attribute in attributes.reject(&:password_digest?) -%> %dt= <%= class_name %>.human_attribute_name :<%= attribute.name %> <% if attribute.reference? -%> %dd.<%= attribute.name %>= @<%= singular_table_name %>.<%= attribute.name %>.try :name <% else -%> %dd.<%= attribute.name %>= @<%= singular_table_name %>.<%= attribute.name %> <% end -%> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
advanced_haml_scaffold_generator-3.0.0 | lib/rails/generators/haml/scaffold/templates/show.html.haml |