From d142420daf630fcc03730659b51473c6660daa14 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 24 Sep 2015 13:59:15 +0800 Subject: [PATCH] fix for dead linsk --- app/assets/stylesheets/tickets/_common.scss | 9 +++++++++ app/views/admin/tickets/_ticket.html.erb | 2 ++ app/views/admin/tickets/_ticket_by_c.html.erb | 3 ++- app/views/admin/tickets/show.html.erb | 4 +++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/tickets/_common.scss b/app/assets/stylesheets/tickets/_common.scss index a9b355e..aebbbb9 100644 --- a/app/assets/stylesheets/tickets/_common.scss +++ b/app/assets/stylesheets/tickets/_common.scss @@ -11,6 +11,15 @@ margin: auto; } +.ticket-site-dead { + color: $gray; + background-color: $light-gray; +} + +.error-red { + color: $red; +} + .img-avatar { width: 50px; height: 50px; diff --git a/app/views/admin/tickets/_ticket.html.erb b/app/views/admin/tickets/_ticket.html.erb index b2345be..e8e57eb 100644 --- a/app/views/admin/tickets/_ticket.html.erb +++ b/app/views/admin/tickets/_ticket.html.erb @@ -18,6 +18,8 @@ <%= ticket.registered_site.title %> + <% else %> + Site deleted <% end %>
<% if ticket.is_urgent? %> diff --git a/app/views/admin/tickets/_ticket_by_c.html.erb b/app/views/admin/tickets/_ticket_by_c.html.erb index 34d7ee7..c5ed33c 100644 --- a/app/views/admin/tickets/_ticket_by_c.html.erb +++ b/app/views/admin/tickets/_ticket_by_c.html.erb @@ -12,8 +12,9 @@ <% if !ticket_by_c.registered_site.nil? %> <%= ticket_by_c.registered_site.title %> + <% else %> + Site deleted <% end %> -   <%= ticket_by_c.subject %> diff --git a/app/views/admin/tickets/show.html.erb b/app/views/admin/tickets/show.html.erb index 1e00b1a..efce823 100644 --- a/app/views/admin/tickets/show.html.erb +++ b/app/views/admin/tickets/show.html.erb @@ -24,7 +24,7 @@ Back to Dashboard - <% if !@ticket.registered_site.nil? + <% if !@ticket.registered_site.nil? %> <%= @ticket.registered_site.title %> @@ -33,6 +33,8 @@ Search tickets from <%= @ticket.registered_site.title %> + <% else %> + Site Deleted <% end %>