Sha256: b5f02e1587e7ff54ab9b75df974db210cc59425d4cb137cd8dfc12b7569c9cfc

Contents?: true

Size: 427 Bytes

Versions: 10

Compression:

Stored size: 427 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
playbook_ui-7.5.1 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.5.0 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.4.2 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.4.1 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.4.0.pre.alpha5 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.4.0 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.4.0.pre.test4 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.4.0.pre.test3 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.4.0.pre.test2 app/pb_kits/playbook/pb_background/_background.html.erb
playbook_ui-7.3.0 app/pb_kits/playbook/pb_background/_background.html.erb