Sha256: a90c6f8c2b04eb9787d0a8be5314bd4aa6f50bcf5694003afe23f8c6aaeee4f2
Contents?: true
Size: 683 Bytes
Versions: 206
Compression:
Stored size: 683 Bytes
Contents
<% link_content = proc do %> <% if object.icon.present? %> <%= pb_rails("icon", props: { icon: object.icon, fixed_width: true, size: "xs", margin_right: "xxs" }) %> <% end %> <%= object.content %> <% if object.icon_right.present? %> <%= pb_rails("icon", props: { icon: object.icon_right, fixed_width: true, size: "xs", margin_left: "xxs" }) %> <% end %> <% end %> <% if object.tag == "a" %> <%= pb_content_tag(object.tag, { href: object.href }) do %> <%= link_content.call %> <% end %> <% else %> <%= pb_content_tag(:a, { href: object.href }) do %> <%= content_tag(object.tag) do %> <%= link_content.call %> <% end %> <% end %> <% end %>
Version data entries
206 entries across 206 versions & 1 rubygems