From b50bb7712fd3291b560590034255d508e88c116d Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 10 Jan 2016 15:10:01 +0100 Subject: [PATCH] Deleted organisations are no longer linked --- app/views/versions/index.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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