%table.zebra-striped
  %tbody
    - @versions.each do |version|
      - user = nil
      - if version.whodunnit
        - begin
          - user = User.find(version.whodunnit)
        - rescue
      %tr
        %td= version.created_at.to_s(:long)
        - if user and user.person
          %td= image_box user.person.avatar, :small
          %td= link_to user.person.full_name, user.person
        -else
          %td= image_box User.first.person.avatar, :small
          %td deleted id
        %td= verb_for version.event
        %td
          - if version.item
            - if version.associated_id
              = version.item.to_s
              on
              \#{associated_link_for version}
            - else
              = link_to version.item.to_s, version.item
          - else
            = version.item_type
        %td
          - if version.event == "update"
            %a{:href => "#", :rel => "popover", :"data-placement" => "below", :"data-original-title" => "Detailed Changes", :"data-content" => render("recent_changes/detailed_changes", :version => version), :"data-html" => "true", :"data-trigger" => "manual"} Details 

%table.zebra-striped
  %tbody
    - @versions.each do |version|
      - user = nil
      - if version.whodunnit
        - begin
          - user = User.find(version.whodunnit)
        - rescue
      %tr
        %td= version.created_at.to_s(:long)
        - if user and user.person
          %td= image_box user.person.avatar, :small
          %td= link_to user.person.full_name, user.person
        -else
          %td= image_box Person.new.avatar, :small
          %td deleted id
        %td= verb_for version.event
        %td
          - if version.item
            - if version.associated_id
              = version.item.to_s
              on
              \#{associated_link_for version}
            - else
              = link_to version.item.to_s, version.item
          - else
            = version.item_type
        %td
          - if version.event == "update"
            %a{:href => "#", :rel => "popover", :"data-placement" => "below", :"data-original-title" => "Detailed Changes", :"data-content" => render("recent_changes/detailed_changes", :version => version), :"data-html" => "true", :"data-trigger" => "manual"} Details 

Use default avatar for deleted persons
Use default avatar for deleted persons
