diff --git a/app/views/versions/index.haml b/app/views/versions/index.haml index ba1f862a..f5f301a1 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