restrict the view button for deleted sites

This commit is contained in:
Harry Bomrah 2017-09-19 19:21:07 +08:00
parent 1000a1a98f
commit 81ef796a11
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
<td><%= contract.created_at.strftime("%y-%m-%d %H:%M") %></td> <td><%= contract.created_at.strftime("%y-%m-%d %H:%M") %></td>
<td><%= (contract.confirmed ? "<span class='label label-success'>Yes</span>" : "<span class='label label-important'>No</span>").html_safe %></td> <td><%= (contract.confirmed ? "<span class='label label-success'>Yes</span>" : "<span class='label label-important'>No</span>").html_safe %></td>
<td> <td>
<% if !site.nil? %>
<a href="<%= see_contract_admin_client_management_path(contract.id) %>" class="btn btn-info">View</a> <a href="<%= see_contract_admin_client_management_path(contract.id) %>" class="btn btn-info">View</a>
<% end %>
</td> </td>
</tr> </tr>
<% end %> <% end %>