<% unless hide.include? "show" %>
<%= link_to object, class: "mb-1 btn btn-#{size} btn-default",
data: { "bs-toggle": "tooltip", "bs-placement": "top", "bs-title": "Visualizar" } do %>
<% if labels %>
Ver
<% end %>
<% end %>
<% end %>
<% unless hide.include? "new" %>
<%= link_to eval_with_rescue("new_#{[object].flatten.map{|x| x.class.to_s.underscore}.join("_")}_path"),
class: "mb-1 btn btn-#{size} btn-danger", data: { "bs-toggle": "tooltip", "bs-placement": "top", "bs-title": "Cadastrar" } do %>
<% if labels %>
Cadastrar
<% end %>
<% end %>
<% end %>
<% unless hide.include? "edit" %>
<%= link_to eval_with_rescue("edit_#{[object].flatten.map{|x| x.class.to_s.underscore}.join("_")}_path(#{object.id})"),
class: "mb-1 btn btn-#{size} btn-warning", data: { "bs-toggle": "tooltip", "bs-placement": "top", "bs-title": "Editar" } do %>
<% if labels %>
Editar
<% end %>
<% end %>
<% end %>
<% unless hide.include? "back" %>
<%= link_to eval_with_rescue("#{[object].flatten.map{|x| x.class.to_s.underscore.pluralize}.join("_")}_path"),
class: "mb-1 btn btn-#{size}", data: { "bs-toggle": "tooltip", "bs-placement": "top", "bs-title": "Voltar" } do %>
<% if labels %>
Voltar
<% end %>
<% end %>
<% end %>
<% unless hide.include? "delete" %>
<%= button_to object, method: :delete, form: { data: { turbo_confirm: 'Tem certeza?' }, class: 'd-inline'},
data: { "bs-toggle": "tooltip", "bs-placement": "top", "bs-title": "Apagar" },
class: "mb-1 btn btn-#{size} btn-dark" do %>
<% if labels %>
Apagar
<% end %>
<% end %>
<% end %>
<%= button_to object, method: :delete, form: { data: { turbo_confirm: 'Tem certeza?' }, class: 'd-inline'},
data: { "bs-toggle": "tooltip", "bs-placement": "top", "bs-title": "Apagar" },
class: "mb-1 btn btn-#{size} btn-dark" do %>
<% if labels %>
Apagar
<% end %>
<% end %>