Sha256: 72a444ec09cd620ea3f439d9aa096f958022ccf10ace006456eefb3485f92d86
Contents?: true
Size: 922 Bytes
Versions: 10
Compression:
Stored size: 922 Bytes
Contents
<%= link_to( path.presence || '#', method: path.present? && method != :get ? method : nil, data: { confirm_action: confirm }.merge(tooltip ? { 'bs-trigger': 'hover', 'bs-toggle': 'popover', 'bs-content': title, } : {}).merge(method&.to_s == 'get' ? {} : { 'ae-method' => method.to_s }), class: "btn #{button_class} #{float_class} #{kwargs_class}", **kwargs ) do %> <% if block_given %> <%= raw content %> <% else %> <span class="text-nowrap"> <% if icon.present? %> <i class="fa-solid fa-<%= icon %>"></i> <% elsif type == :show %> <i class="fa-solid fa-magnifying-glass"></i> <% elsif type == :edit %> <i class="fa-solid fa-pen"></i> <% elsif type == :destroy %> <i class="fa-solid fa-square-xmark"></i> <% end %> <span class="button-title"><%= title %></span> </span> <% end %> <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems