3550: Merge branch 'master' into 3550-local-pipeline
[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   <% if !['Group','User', 'Collection'].include? @object.class.to_s # projects and collections handle it themselves %>
9     <%= render partial: 'name_and_description' %>
10   <% end %>
11
12 <% if @object.respond_to? :properties and !@object.properties.nil? %>
13   <% if @object.properties[:page_content] %>
14     <% content_for :page_content do %>
15       <h1>
16         <%= render_markup(@object.properties[:page_title] || @object.uuid) %>
17       </h1>
18
19       <% if @object.properties[:page_subtitle] %>
20         <h4>
21           <%= render_markup @object.properties[:page_subtitle] %>
22         </h4>
23       <% end %>
24
25       <%= render_markup @object.properties[:page_content] %>
26     <% end %>
27   <% end %>
28 <% end %>
29
30 <% end %>
31
32 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>