<commit_before>%h3 Revisions

%table
  %tr
    %td
      %small 
        %strong Updated by
    %td
      - if @version
        current
      - else
        %strong current
    %td
      %small 
        %strong Updated @

    %td    
      = link_to('show', :id => versioned, :action => :show)
      = link_to('edit', :id => versioned, :action => :edit)
    
  - versioned.versions.reverse.each do |version|
    %tr
      %td
        %small= User.find(version.whodunnit).name if version.whodunnit rescue "#{version.whodunnit} [User Missing]"
        
      %td
        - if version == @version
          %strong= version.event
        - else
          = version.event
      %td
        %small= I18n.l(version.created_at, :format => :long)
      %td
        = link_to 'show', :action => 'show', :id => versioned, :version_id => version.id
        = link_to 'edit', :action => 'edit', :id => versioned, :version_id => version.id
        <commit_msg>simpler revision partial. closes #99<commit_after>%h3 Revisions

- if versioned.live?
  You are currently seeing the current version of the object
- else
  You are currently seeing a previous version of the object

%table
  %thead
    %tr
      %th Version
      %th Updated by
      %th Type
      %th Updated at
      %th
  %tbody
    %tr
      %td Current
      %td
      %td
      %td
      %td    
        = link_to('show', :id => versioned, :action => :show)
        = link_to('edit', :id => versioned, :action => :edit)
      %td= '<==' unless @version
    
    - versioned.versions.reverse.each do |version|
      %tr
        %td= version.index
        %td= User.find(version.whodunnit).name if version.whodunnit rescue "#{version.whodunnit} [User Missing]"
        %td= version.event
        %td= I18n.l(version.created_at, :format => :long)
        %td
          = link_to 'show', :action => 'show', :id => versioned, :version_id => version.id
          = link_to 'edit', :action => 'edit', :id => versioned, :version_id => version.id
        %td= '<==' if version == @version
        
{'fraction_non_alphanumeric': 0.1366307541625857, 'fraction_numerical': 0.0039177277179236044, 'mean_word_length': 2.044709388971684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '5819603', 'n_tokens_mistral': 667, 'n_tokens_neox': 654, 'n_words': 179}