1 <% content_for :page_title do %>
2 <%= (@object.respond_to?(:properties) ? @object.properties[:page_title] : nil) ||
3 @object.friendly_link_name %>
6 <% if @object.respond_to? :properties %>
7 <% if @object.properties[:page_content] %>
8 <% content_for :page_content do %>
10 <%= render_content_from_database(@object.properties[:page_title] || @object.uuid) %>
13 <% if @object.properties[:page_subtitle] %>
15 <%= render_content_from_database @object.properties[:page_subtitle] %>
19 <%= render_content_from_database @object.properties[:page_content] %>
24 <% pane_list = controller.show_pane_list rescue %w(attributes) %>
26 <div class="tabbable">
27 <ul class="nav nav-tabs">
28 <% pane_list.each_with_index do |pane, i| %>
29 <li class="<%= 'active' if i==0 %>"><a href="#<%= pane %>" data-toggle="tab"><%= pane.capitalize.gsub '_', ' ' %></a></li>
33 <div class="tab-content">
34 <% pane_list.each_with_index do |pane, i| %>
35 <div id="<%= pane %>" class="tab-pane fade in <%= 'active' if i==0 %>">
36 <%= render partial: 'show_' + pane %>