Use object type or friendly_link_name as browser title.
[arvados.git] / apps / workbench / app / views / application / show.html.erb
1 <% content_for :page_title do %>
2 <%= (@object.respond_to?(:properties) ? @object.properties[:page_title] : nil) ||
3     @object.friendly_link_name %>
4 <% end %>
5
6 <% if @object.respond_to? :properties %>
7 <% if @object.properties[:page_content] %>
8 <% content_for :page_content do %>
9 <h1>
10 <%= render_content_from_database(@object.properties[:page_title] || @object.uuid) %>
11 </h1>
12
13 <% if @object.properties[:page_subtitle] %>
14 <h4>
15 <%= render_content_from_database @object.properties[:page_subtitle] %>
16 </h4>
17 <% end %>
18
19 <%= render_content_from_database @object.properties[:page_content] %>
20 <% end %>
21 <% end %>
22 <% end %>
23
24
25 <%= render :partial => 'application/arvados_object' %>