Sha256: 69d19eceff417d4a44fd747903f8702003d83eba2a81aa0380a7423670a6207c
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 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'), <%= plural_name %>_path, class: 'index' <% if turbo -%> - else = link_to t('Back'), '', class: 'back', data: {action: "navigation#back", turbo_action: 'replace'} <% end -%> - if can? :show, @<%= singular_name %> = link_to t('show'), @<%= singular_name %>, class: 'show' <% 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('show'), @<%= singular_name %>, class: 'show' <% end -%> = render 'form', <%= singular_table_name %>: @<%= singular_table_name %>
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/edit.html.haml |