X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c16a97576716f81c721bcd0c889309cb75e3eb9a..257d60253246952b435cea23b1912af80ea2c6d6:/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..9b1b002c7d 100644 --- a/apps/workbench/app/views/application/show.html.erb +++ b/apps/workbench/app/views/application/show.html.erb @@ -1,40 +1,2 @@ -<% content_for :page_title do %> -<%= (@object.respond_to?(:properties) ? @object.properties[:page_title] : nil) || - @object.friendly_link_name %> -<% end %> - -<% 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_subtitle] %> -

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

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