Sha256: a832c4f2a5afe86e6eed96e5cdf0350973d6759310d9e209cf8290d86c5417ae

Contents?: true

Size: 576 Bytes

Versions: 125

Compression:

Stored size: 576 Bytes

Contents

<% if path.present? %>
  <%= send link_method, path, class: classes, active: active, target: target, data: data do %>
    <%= helpers.svg icon, class: "h-4 text-gray-700" if icon.present? %>
    <%= label %>
    <% if target == :_blank %>
      <%= helpers.svg('heroicons/outline/external-link', class: 'self-center ml-auto h-3 mr-2') %>
    <% end %>
  <% end %>
<% else %>
  <%= content_tag :div, class: classes, active: active, target: target, data: data do %>
    <%= helpers.svg icon, class: "h-4 text-gray-700" if icon.present? %>
    <%= label %>
  <% end %>
<% end %>

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
avo-2.53.0 app/components/avo/sidebar/link_component.html.erb
avo-3.11.7 app/components/avo/sidebar/link_component.html.erb
avo-3.11.6 app/components/avo/sidebar/link_component.html.erb
avo-3.11.5 app/components/avo/sidebar/link_component.html.erb
avo-3.11.4 app/components/avo/sidebar/link_component.html.erb
avo-3.11.3 app/components/avo/sidebar/link_component.html.erb
avo-3.11.2 app/components/avo/sidebar/link_component.html.erb
avo-3.11.1 app/components/avo/sidebar/link_component.html.erb
avo-3.11.0 app/components/avo/sidebar/link_component.html.erb
avo-2.52.0 app/components/avo/sidebar/link_component.html.erb
avo-3.10.10 app/components/avo/sidebar/link_component.html.erb
avo-3.10.9 app/components/avo/sidebar/link_component.html.erb
avo-3.10.8 app/components/avo/sidebar/link_component.html.erb
avo-3.10.7 app/components/avo/sidebar/link_component.html.erb
avo-3.10.6 app/components/avo/sidebar/link_component.html.erb
avo-3.10.5 app/components/avo/sidebar/link_component.html.erb
avo-3.10.4 app/components/avo/sidebar/link_component.html.erb
avo-3.10.3 app/components/avo/sidebar/link_component.html.erb
avo-3.10.2 app/components/avo/sidebar/link_component.html.erb
avo-3.10.1 app/components/avo/sidebar/link_component.html.erb