Sha256: 726ae2c9fa607b745792e372c50c98a200407b4f35a307c109b0ed10eb93b15d

Contents?: true

Size: 723 Bytes

Versions: 4

Compression:

Stored size: 723 Bytes

Contents

<%= render component_tag(x: {data: x_data("pageLayout")}, class: ({"with-header": header?} if header?)) do %>
  <% if header? %>
    <header class="page-header" data-role="page-header">
      <%= header %>
    </header>
  <% end %>
  <div class="page-body" data-role="page-body">
    <div class="page-body-content">
      <%= content %>
    </div>
  </div>
  
  <% if previous_link? || next_link? %>
    <div class="page-controls">
      <%= previous_link %>
      <%= next_link %>
    </div>
  <% end %>

  <% if hidden_sections? %>
    <div class="hidden">
      <% hidden_sections.each do |hidden| %>
        <%= hidden %>
      <% end %>
    </div>
  <% end %>
  
  <%= poll_controller if poll_controller? %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coveragebook_components-0.9.1 app/components/coco/app/layouts/page/page.html.erb
coveragebook_components-0.9.0 app/components/coco/app/layouts/page/page.html.erb
coveragebook_components-0.8.9 app/components/coco/app/layouts/page/page.html.erb
coveragebook_components-0.8.8 app/components/coco/app/layouts/page/page.html.erb