diff --git a/app/views/versions/index.haml b/app/views/versions/index.haml index ba1f862af5861018ca4567fdcdc05e4e8f3d44fb..f5f301a1252826c065235247e245218c63e79f97 100644 --- a/app/views/versions/index.haml +++ b/app/views/versions/index.haml @@ -41,9 +41,10 @@ %td= object %td= l version.created_at, format: :short %td - %a{ href: polymorphic_path(version.item_type.tableize.singularize, - id: version.item_id) } - %em.fa.fa-eye + - unless version.event == 'destroy' + %a{ href: polymorphic_path(version.item_type.tableize.singularize, + id: version.item_id) } + %em.fa.fa-eye %tfoot %tr