fallback for sites not found

This commit is contained in:
Harry Bomrah 2017-09-19 16:52:24 +08:00
parent f7e3b43a39
commit 666dda5e0a
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<% @contracts.each do |contract| %>
<% site = contract.get_site %>
<tr>
<td><%= contract.uid %>
<td><%= contract.contract_user.name %></td>
@ -8,7 +9,11 @@
<span class="label label-success">New Site</span>
<% when "existing" %>
<span class="label label-warning">New Feature</span>
<div>Requested for : <a href="http://<%= contract.get_site.site_domain %>" target="_blank"><%= contract.get_site.title %></a></div>
<% if !site.nil? %>
<div>Requested for : <a href="http://<%= site.site_domain %>" target="_blank"><%= site.title %></a></div>
<% else %>
Site Deleted
<% end %>
<% end %>
</td>
<td><%= contract.created_at.strftime("%y-%m-%d %H:%M") %></td>

View File

@ -1,4 +1,5 @@
<% @site_requests.each do |request| %>
<% site = request.get_site %>
<tr>
<td><%= request.uid %>
<td><%= request.c_panel_user.name %></td>
@ -8,7 +9,11 @@
<span class="label label-success">New Site</span>
<% when "existing" %>
<span class="label label-warning">New Feature</span>
<div>Requested for : <a href="http://<%= request.get_site.site_domain %>" target="_blank"><%= request.get_site.title %></a></div>
<% if !site.nil? %>
<div>Requested for : <a href="http://<%= site.site_domain %>" target="_blank"><%= site.title %></a></div>
<% else %>
Site Deleted
<% end %>
<% when "addsites" %>
<span class="label label-info">Sites Addition</span>
<% end %>