Sha256: 2311388b45ddc7469ddb41743448275a52015e7b21a8053601f5087da77741de

Contents?: true

Size: 854 Bytes

Versions: 4

Compression:

Stored size: 854 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">
      <% if sections? %>
        <div class="page-sections">
          <%= safe_join(sections) %>
        </div>  
      <% end %>
      <%= 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.10.1.beta.2 app/components/coco/app/layouts/page/page.html.erb
coveragebook_components-0.10.1.beta.1 app/components/coco/app/layouts/page/page.html.erb
coveragebook_components-0.10.1.beta.0 app/components/coco/app/layouts/page/page.html.erb
coveragebook_components-0.10.0 app/components/coco/app/layouts/page/page.html.erb