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 %>
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' %>
12 <% if @object.class.goes_in_projects? && @object.uuid != current_user.uuid # Not the "Home" project %>
13 <% content_for :tab_line_buttons do %>
14 <% if @object.class.copies_to_projects? %>
17 title: 'Copy to project...',
19 action_href: actions_path,
20 action_method: 'post',
22 copy_selections_into_project: true,
23 selection: @name_link.andand.uuid || @object.uuid,
24 selection_param: 'uuid',
25 success: 'redirect-to-created-object'
27 { class: "btn btn-sm btn-primary", remote: true, method: 'get' }) do %>
28 <i class="fa fa-fw fa-copy"></i> Copy to project...
31 <% if @object.owner_uuid == current_user.uuid or (Group.find(@object.owner_uuid).writable_by.include?(current_user.uuid) rescue nil) %>
34 title: 'Move to project...',
36 action_href: actions_path,
37 action_method: 'post',
39 move_selections_into_project: true,
40 selection: @name_link.andand.uuid || @object.uuid,
41 selection_param: 'uuid',
42 success: 'redirect-to-created-object'
44 { class: "btn btn-sm btn-primary", remote: true, method: 'get' }) do %>
45 <i class="fa fa-fw fa-truck"></i> Move to project...
51 <% if @object.respond_to? :properties and !@object.properties.nil? %>
52 <% if @object.properties[:page_content] %>
53 <% content_for :page_content do %>
55 <%= render_markup(@object.properties[:page_title] || @object.uuid) %>
58 <% if @object.properties[:page_subtitle] %>
60 <%= render_markup @object.properties[:page_subtitle] %>
64 <%= render_markup @object.properties[:page_content] %>
71 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>