<commit_before>#inner_page_add_menu.dropdown
  %ul
    - hide_types = [InnerPage, BiologicaWorld, BiologicaOrganism, BiologicaStaticOrganism, BiologicaChromosome, BiologicaChromosomeZoom, BiologicaBreedOffspring, BiologicaPedigree, BiologicaMultipleOrganism, BiologicaMeiosisView]
    - Page::element_types.each do |type|
      - next if hide_types.include? type
      %li= link_to_remote "#{type.display_name}", :update =>dom_id_for(inner_page, :inner_page_area), :url => url_for(:controller =>'inner_pages', :action => 'add_element', :class_name => type.name, :id=>inner_page.id, :page_id => page.id), :html => {:class=>'action'}, :complete => mce_init_string

/ The action for the inner pages is temporarily disabled... 
/
/ #inner_page_actions_menu.dropdown
/   %ul
/     %li#copy_link copy (disabled)
/     %li#paste_link= paste_link_for(Page::paste_acceptable_types,{:container_id => @container_id}) # see pages_helper.rb
/     %li= run_link_for(page)
/     %li= print_link_for(page)
/     %li= toggle_all('elements')
/     %li= link_to toggle_link_title('preview', 'edit'), preview_page_path(page)
/     - if (page.changeable?(current_user))
/       %li= link_to 'edit page details', edit_page_url(page)
/       %li= link_to 'duplicate', duplicate_page_url(page)

- if (teacher_only? page)
  - view_class = "action_menu teacher_only"
- else
  - view_class = "action_menu"

      
%div{:id => dom_id_for(page,:item), :class =>view_class}
  .action_menu_header_left
    .padded_content
    .padded_content
      = "- #{page.name} -"
  .action_menu_header_right
    / see above; these actions are disabled for now..
    / = dropdown_button "actions.png", :name=> 'inner_page_actions', :title => 'add content to this page'
    - if (page.changeable?(current_user))
      = dropdown_button "add.png", :name=> 'inner_page_add', :title => 'add content to this page'
    - if (page.previous)
      = remote_link_button "previous_node.png", :url => set_page_inner_page_path(:page_id =>page.previous, :id=>inner_page.id), :title => "go to previous page", :update => dom_id_for(inner_page, :inner_page_area)
    - else
      .rollover= image_tag("previous_node_disabled.png")
    / - if page.parent
    /   - page.parent.pages.each do |p|
    /     - if (p.id == page.id)
    /       = link_button "this_node.png", "#", :title => "you are here"
    /     - else
    /       = link_button "other_node.png", p, :title => "go to #{p.name}"
    - if (page.next)
      = remote_link_button "next_node.png", :url => set_page_inner_page_path(:page_id => page.next,:id=>inner_page.id), :title => 'next page', :update => dom_id_for(inner_page, :inner_page_area)
    - else
      .rollover= image_tag("next_node_disabled.png")
    - if (page.changeable?(current_user))
      = remote_link_button "delete.png", :confirm => "Inner page #{page.name}?", :url => delete_page_inner_page_path(:page_id =>page, :id=>inner_page.id), :title => "delete page", :update => dom_id_for(inner_page, :inner_page_area)
    - if (page.section)
      = link_button "up.png", page.section, :title => 'go to section'<commit_msg>use unique dom IDs for drop down menu targets.<commit_after>%div{id=>dom_id_for(page, :add_menu), :class=>"dropdown"}
  %ul
    - hide_types = [InnerPage, BiologicaWorld, BiologicaOrganism, BiologicaStaticOrganism, BiologicaChromosome, BiologicaChromosomeZoom, BiologicaBreedOffspring, BiologicaPedigree, BiologicaMultipleOrganism, BiologicaMeiosisView]
    - Page::element_types.each do |type|
      - next if hide_types.include? type
      %li= link_to_remote "#{type.display_name}", :update =>dom_id_for(inner_page, :inner_page_area), :url => url_for(:controller =>'inner_pages', :action => 'add_element', :class_name => type.name, :id=>inner_page.id, :page_id => page.id), :html => {:class=>'action'}, :complete => mce_init_string

/ The action for the inner pages is temporarily disabled... 
/
/ #inner_page_actions_menu.dropdown
/   %ul
/     %li#copy_link copy (disabled)
/     %li#paste_link= paste_link_for(Page::paste_acceptable_types,{:container_id => @container_id}) # see pages_helper.rb
/     %li= run_link_for(page)
/     %li= print_link_for(page)
/     %li= toggle_all('elements')
/     %li= link_to toggle_link_title('preview', 'edit'), preview_page_path(page)
/     - if (page.changeable?(current_user))
/       %li= link_to 'edit page details', edit_page_url(page)
/       %li= link_to 'duplicate', duplicate_page_url(page)

- if (teacher_only? page)
  - view_class = "action_menu teacher_only"
- else
  - view_class = "action_menu"

      
%div{:id => dom_id_for(page,:item), :class =>view_class}
  .action_menu_header_left
    = "- #{page.name} -"
  .action_menu_header_right
    / see above; these actions are disabled for now..
    / = dropdown_button "actions.png", :name=> 'inner_page_actions', :title => 'add content to this page'
    - if (page.changeable?(current_user))
      = dropdown_button "add.png", :name=> dom_id_for(page, :add_menu), :title => 'add content to this page'
    - if (page.previous)
      = remote_link_button "previous_node.png", :url => set_page_inner_page_path(:page_id =>page.previous, :id=>inner_page.id), :title => "go to previous page", :update => dom_id_for(inner_page, :inner_page_area)
    - else
      .rollover= image_tag("previous_node_disabled.png")
    / - if page.parent
    /   - page.parent.pages.each do |p|
    /     - if (p.id == page.id)
    /       = link_button "this_node.png", "#", :title => "you are here"
    /     - else
    /       = link_button "other_node.png", p, :title => "go to #{p.name}"
    - if (page.next)
      = remote_link_button "next_node.png", :url => set_page_inner_page_path(:page_id => page.next,:id=>inner_page.id), :title => 'next page', :update => dom_id_for(inner_page, :inner_page_area)
    - else
      .rollover= image_tag("next_node_disabled.png")
    - if (page.changeable?(current_user))
      = remote_link_button "delete.png", :confirm => "Inner page #{page.name}?", :url => delete_page_inner_page_path(:page_id =>page, :id=>inner_page.id), :title => "delete page", :update => dom_id_for(inner_page, :inner_page_area)
    - if (page.section)
      = link_button "up.png", page.section, :title => 'go to section'
{'fraction_non_alphanumeric': 0.15288059221113615, 'fraction_numerical': 0.0, 'mean_word_length': 4.119439868204283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3944182', 'n_tokens_mistral': 2191, 'n_tokens_neox': 2170, 'n_words': 436}