<commit_before>=javascript_include_tag "slide_edit.js"
//=stylesheet_link_tag "/templates/"+@slide.template.to_s

=content_for :h1 do
  #type
    %small Presentation
    Slide
  #title
    %small=link_to @presentation.asset.name, edit_presentation_path(@presentation)
    =link_to @slide.title, presentation_slide_path(@presentation, @slide)
  #action
    %span.action
      =button_to "Delete", [@presentation, @slide], :method => :delete
      =form_for [current_user, TrayPosition.new(:user_id => current_user.id, :clipboard_type => 'slide', :clipboard_id => @slide.id)], :html => {:class => :inline} do |f|
        =f.hidden_field :user_id
        =f.hidden_field :clipboard_id
        =f.hidden_field :clipboard_type
        =submit_tag "Put on Tray"
      
#sidebar
  =render :partial => "/presentations/slides", :locals => {:presentation =>  @presentation}
  
#main
  #editorhelp=render :partial => "shared/editorhelp"
  =form_for  [@presentation,  @slide] do |f|
    =submit_tag "Save", :id => "slide_save"
    =render :partial => "form", :object => f
    %h2 Slots
    %ul#slots
      =render :partial => "slot", :collection => @slide.slots
    #edit_warning{:style => "visibility: hidden"}
      There are unsaved changes on this slide
<commit_msg>Add one confirmation I forgot.<commit_after>=javascript_include_tag "slide_edit.js"
//=stylesheet_link_tag "/templates/"+@slide.template.to_s

=content_for :h1 do
  #type
    %small Presentation
    Slide
  #title
    %small=link_to @presentation.asset.name, edit_presentation_path(@presentation)
    =link_to @slide.title, presentation_slide_path(@presentation, @slide)
  #action
    %span.action
      =button_to "Delete", [@presentation, @slide], :method => :delete, :onclick => "return confirm('Are you sure?')"
      =form_for [current_user, TrayPosition.new(:user_id => current_user.id, :clipboard_type => 'slide', :clipboard_id => @slide.id)], :html => {:class => :inline} do |f|
        =f.hidden_field :user_id
        =f.hidden_field :clipboard_id
        =f.hidden_field :clipboard_type
        =submit_tag "Put on Tray"
      
#sidebar
  =render :partial => "/presentations/slides", :locals => {:presentation =>  @presentation}
  
#main
  #editorhelp=render :partial => "shared/editorhelp"
  =form_for  [@presentation,  @slide] do |f|
    =submit_tag "Save", :id => "slide_save"
    =render :partial => "form", :object => f
    %h2 Slots
    %ul#slots
      =render :partial => "slot", :collection => @slide.slots
    #edit_warning{:style => "visibility: hidden"}
      There are unsaved changes on this slide

{'fraction_non_alphanumeric': 0.14728682170542637, 'fraction_numerical': 0.0015503875968992248, 'mean_word_length': 4.001937984496124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 36, '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': '4987689', 'n_tokens_mistral': 870, 'n_tokens_neox': 841, 'n_words': 195}