From 81ef796a11d23b96dff76b10b0812011ed245125 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 19 Sep 2017 19:21:07 +0800 Subject: [PATCH] restrict the view button for deleted sites --- app/views/admin/client_managements/_contract_index.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/admin/client_managements/_contract_index.html.erb b/app/views/admin/client_managements/_contract_index.html.erb index 0deb2d2..a19ce2b 100644 --- a/app/views/admin/client_managements/_contract_index.html.erb +++ b/app/views/admin/client_managements/_contract_index.html.erb @@ -19,7 +19,9 @@ <%= contract.created_at.strftime("%y-%m-%d %H:%M") %> <%= (contract.confirmed ? "Yes" : "No").html_safe %> - View + <% if !site.nil? %> + View + <% end %> <% end %> \ No newline at end of file