Sha256: 4bb9f4d7a1fa111b9f00c398269320e3f2ae8a90268762071fd5b82fa712e642

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

<% content_for :title do %>
  <%= button_link_to('Edit', edit_grandstand_page_path(@page), :icon => 'edit') %>
<% end %>
<h2><%= @page.name %> <%= link_to url = page_url(@page.url), url, :class => 'external icon' %></h2>
<% if @page.page_sections.size == 1 -%>
<div class="pad">
  <%= page_content(@page.page_sections.first) %>
</div>
<% else -%>
<div class="tabset pad">
  <ul class="tabs">
    <% @page.page_sections.each do |page_section| -%>
    <li>
      <a href="#page-section-<%= page_section.id %>"><%= page_section.section.titleize %></a>
    </li>
    <% content_for :page_sections do -%>
  <div class="page-section" id="page-section-<%= page_section.id %>">
    <%= page_content(page_section) %>
  </div>
    <% end -%>
  <% end -%>
  </ul>
  <%= yield :page_sections %>
</div>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grandstand-0.3.0 app/views/grandstand/pages/show.html.erb