Sha256: 8bd36864b4a3984584828a9d3a135938a9a7f7f0c58fd4cdf8faf2650fb20c22

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 Bytes

Contents

<% if object.image_url.present? %>
  <%= content_tag(object.tag,
      aria: object.aria,
      data: object.data,
      id: object.id,
      class: object.classname,
      style: `background-image: url(#{object.image_url});`
  ) do %>
    <%= capture(&object.children) %>
  <% end %>
<% else %>
  <%= content_tag(object.tag,
      aria: object.aria,
      data: object.data,
      id: object.id,
      class: object.classname
  ) do %>
    <%= capture(&object.children) %>
  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.6.2 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.6.1 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.6.0 app/pb_kits/playbook/pb_background/_background.html.erb