<commit_before>- page_elements_container = dom_id_for(page,:elements_container)

- if (for_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
    .action_menu_header_left
      .padded_content
        %span.page_name inner page: #{page.name}
    .action_menu_header_right
      - if (page.changeable?(current_user))
        = dropdown_button "add.png", :content_id=>dom_id_for(page, :add_menu),:name=> dom_id_for(page, :add_menu), :title => 'add content to this page'
        - delete_url = url_for(:controller => "embeddable/inner_pages", :action => 'delete_page', :id => inner_page.id, :page_id => page.id)
        = remote_link_button "delete.png", :confirm => "Delete THE BIG OLD page #{page.name}?", :url => delete_url, :title => "delete #{page.name}"
      - else
        = link_button "disabled.png", "#", :title => "can't add content"
    
  .item_collection
    %ul.menu{:id => page_elements_container}
      - page.page_elements.each_with_index do |element,i|
        = render :partial => 'pages/element_container', :locals => {:element => element, :component => element.embeddable, :page_element => element, :page => page }
      - if (page.changeable?(current_user))
        - url = polymorphic_url([:sort_elements, page])
        =sortable_element page_elements_container, :url => url, :handle=> "action_menu", :constraint => :vertical, :scroll => "window"<commit_msg>remove debug text in alert<commit_after>- page_elements_container = dom_id_for(page,:elements_container)

- if (for_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
    .action_menu_header_left
      .padded_content
        %span.page_name inner page: #{page.name}
    .action_menu_header_right
      - if (page.changeable?(current_user))
        = dropdown_button "add.png", :content_id=>dom_id_for(page, :add_menu),:name=> dom_id_for(page, :add_menu), :title => 'add content to this page'
        - delete_url = url_for(:controller => "embeddable/inner_pages", :action => 'delete_page', :id => inner_page.id, :page_id => page.id)
        = remote_link_button "delete.png", :confirm => "Delete the page #{page.name}?", :url => delete_url, :title => "delete #{page.name}"
      - else
        = link_button "disabled.png", "#", :title => "can't add content"
    
  .item_collection
    %ul.menu{:id => page_elements_container}
      - page.page_elements.each_with_index do |element,i|
        = render :partial => 'pages/element_container', :locals => {:element => element, :component => element.embeddable, :page_element => element, :page => page }
      - if (page.changeable?(current_user))
        - url = polymorphic_url([:sort_elements, page])
        =sortable_element page_elements_container, :url => url, :handle=> "action_menu", :constraint => :vertical, :scroll => "window"
{'fraction_non_alphanumeric': 0.15252558600198085, 'fraction_numerical': 0.0, 'mean_word_length': 3.9917627677100493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 51, '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': '5758330', 'n_tokens_mistral': 1005, 'n_tokens_neox': 989, 'n_words': 203}