Sha256: 4332c4824c86faa9fee97e79be20499fd4103fce0e9ea63736c4f3fce3972a91
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
<% rutareg = clase.pluralize.underscore + '/show_boton_regresar' %> <% if lookup_context.find_all( rutareg, [], true).any? %> <%= render partial: rutareg %> <% else %> <%= link_to t('.back', :default => t("helpers.links.back")), modelos_path(@registro), :class => 'btn' %> <% end %> <% if can?(:edit, @registro) %> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_modelo_path(@registro), :class => 'btn' %> <% end %> <% rutamas = clase.pluralize.underscore + '/show_mas_acciones' %> <% if lookup_context.find_all( rutamas, [], true).any? %> <% # Hay un parcial %> <%= render partial: rutamas %> <% else %> <%= render 'show_mas_acciones' %> <% end %> <% if can?(:destroy, @registro) %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), modelo_path(@registro), :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?' ) ), 'turbo-method' => 'delete' }, :class => 'btn btn-danger' %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems