X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c16a97576716f81c721bcd0c889309cb75e3eb9a..88bef712f3c9fb6e7b7e5d1eb7b429da598f4eaf:/apps/workbench/app/views/application/show.html.erb diff --git a/apps/workbench/app/views/application/show.html.erb b/apps/workbench/app/views/application/show.html.erb index 03a8f9bbb0..d6eca3a215 100644 --- a/apps/workbench/app/views/application/show.html.erb +++ b/apps/workbench/app/views/application/show.html.erb @@ -1,40 +1,30 @@ <% content_for :page_title do %> -<%= (@object.respond_to?(:properties) ? @object.properties[:page_title] : nil) || - @object.friendly_link_name %> + <%= (@object.respond_to?(:properties) ? @object.properties[:page_title] : nil) || + @name_link.andand.name || + @object.friendly_link_name %> <% end %> +<% content_for :content_top do %> + <% if @object.respond_to? :properties %> -<% if @object.properties[:page_content] %> -<% content_for :page_content do %> -

-<%= render_content_from_database(@object.properties[:page_title] || @object.uuid) %> -

+ <% if @object.properties[:page_content] %> + <% content_for :page_content do %> +

+ <%= render_content_from_database(@object.properties[:page_title] || @object.uuid) %> +

+ + <% if @object.properties[:page_subtitle] %> +

+ <%= render_content_from_database @object.properties[:page_subtitle] %> +

+ <% end %> -<% if @object.properties[:page_subtitle] %> -

-<%= render_content_from_database @object.properties[:page_subtitle] %> -

+ <%= render_content_from_database @object.properties[:page_content] %> + <% end %> + <% end %> <% end %> -<%= render_content_from_database @object.properties[:page_content] %> -<% end %> -<% end %> <% end %> -<% pane_list = controller.show_pane_list %> +<%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%> - - -
- <% pane_list.each_with_index do |pane, i| %> -
-
- <%= render partial: 'show_' + pane %> -
-
- <% end %> -