Merge branch 'master' into 3153-auto-setup-user
[arvados.git] / apps / workbench / app / views / application / show.html.erb
1 <% content_for :page_title do %>
2   <%= (@object.respond_to?(:properties) and !@object.properties.nil? ? @object.properties[:page_title] : nil) ||
3       @name_link.andand.name ||
4       @object.friendly_link_name %>
5 <% end %>
6
7 <% content_for :content_top do %>
8
9 <% if @object.respond_to? :properties and !@object.properties.nil? %>
10   <% if @object.properties[:page_content] %>
11     <% content_for :page_content do %>
12       <h1>
13         <%= render_content_from_database(@object.properties[:page_title] || @object.uuid) %>
14       </h1>
15
16       <% if @object.properties[:page_subtitle] %>
17         <h4>
18           <%= render_content_from_database @object.properties[:page_subtitle] %>
19         </h4>
20       <% end %>
21
22       <%= render_content_from_database @object.properties[:page_content] %>
23     <% end %>
24   <% end %>
25 <% end %>
26
27 <% end %>
28
29 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>