X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e5d1f2f918be2c6a59ac4085276342cc4533fe2a..274ca7a6c2f1f600de4242eee6cb4e8465d4440c:/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 d2abd72b87..0697fefec5 100644 --- a/apps/workbench/app/views/application/show.html.erb +++ b/apps/workbench/app/views/application/show.html.erb @@ -1,39 +1,32 @@ <% content_for :page_title do %> -<%= (@object.respond_to?(:properties) ? @object.properties[:page_title] : nil) || - @object.friendly_link_name %> + <%= (@object.respond_to?(:properties) and !@object.properties.nil? ? @object.properties[:page_title] : nil) || + @name_link.andand.name || + @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 %> +<% content_for :content_top do %> + <% if !['Group','User', 'Collection'].include? @object.class.to_s # projects and collections handle it themselves %> + <%= render partial: 'name_and_description' %> + <% end %> -<%= render_content_from_database @object.properties[:page_content] %> -<% end %> -<% end %> -<% end %> +<% if @object.respond_to? :properties and !@object.properties.nil? %> + <% if @object.properties[:page_content] %> + <% content_for :page_content do %> +

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

-<% pane_list = controller.show_pane_list rescue %w(attributes) %> + <% if @object.properties[:page_subtitle] %> +

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

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