small fix for delete sites
This commit is contained in:
parent
7fb6c177b0
commit
4fd1ac944e
|
@ -1,7 +1,9 @@
|
||||||
module TicketsHelper
|
module TicketsHelper
|
||||||
def smart_links_parser(html,site)
|
def smart_links_parser(html,site)
|
||||||
|
if !site.nil?
|
||||||
html = html.gsub("href=\"/uploads/","href=\"http://#{site.site_domain}/uploads/")
|
html = html.gsub("href=\"/uploads/","href=\"http://#{site.site_domain}/uploads/")
|
||||||
html = html.gsub("src=\"/uploads/","src=\"http://#{site.site_domain}/uploads/")
|
html = html.gsub("src=\"/uploads/","src=\"http://#{site.site_domain}/uploads/")
|
||||||
|
end
|
||||||
return html
|
return html
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,12 @@
|
||||||
<a class="ticket-link" href="<%= admin_ticket_path(ticket.id) %>">
|
<a class="ticket-link" href="<%= admin_ticket_path(ticket.id) %>">
|
||||||
<span class="ticket-title"><%= ticket.subject %></span>
|
<span class="ticket-title"><%= ticket.subject %></span>
|
||||||
</a>
|
</a>
|
||||||
|
<% if !ticket.registered_site.nil? %>
|
||||||
<a class="ticket-site-link" href="http://<%= ticket.registered_site.site_domain %>" target="_blank">
|
<a class="ticket-site-link" href="http://<%= ticket.registered_site.site_domain %>" target="_blank">
|
||||||
<i class="fa fa-external-link"></i>
|
<i class="fa fa-external-link"></i>
|
||||||
<%= ticket.registered_site.title %>
|
<%= ticket.registered_site.title %>
|
||||||
</a>
|
</a>
|
||||||
|
<% end %>
|
||||||
<div class="ticket-label pull-right">
|
<div class="ticket-label pull-right">
|
||||||
<% if ticket.is_urgent? %>
|
<% if ticket.is_urgent? %>
|
||||||
<span class="label label-danger">
|
<span class="label label-danger">
|
||||||
|
|
|
@ -9,7 +9,12 @@
|
||||||
%>
|
%>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= ticket_by_c.uid %></td>
|
<td><%= ticket_by_c.uid %></td>
|
||||||
<td><a href="http://<%= ticket_by_c.registered_site.site_domain %>" target="_blank"><%= ticket_by_c.registered_site.title %></a></td>
|
<td>
|
||||||
|
<% if !ticket_by_c.registered_site.nil? %>
|
||||||
|
<a href="http://<%= ticket_by_c.registered_site.site_domain %>" target="_blank"><%= ticket_by_c.registered_site.title %></a>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</td>
|
||||||
<td class="span6">
|
<td class="span6">
|
||||||
<a href="/admin/tickets/<%= ticket_by_c.id.to_s %>"><%= ticket_by_c.subject %></a>
|
<a href="/admin/tickets/<%= ticket_by_c.id.to_s %>"><%= ticket_by_c.subject %></a>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<i class="ticket-home-btn-icon fa fa-home"></i>
|
<i class="ticket-home-btn-icon fa fa-home"></i>
|
||||||
Back to Dashboard
|
Back to Dashboard
|
||||||
</a>
|
</a>
|
||||||
|
<% if !@ticket.registered_site.nil?
|
||||||
<a href="http://<%= @ticket.registered_site.site_domain %>" target="_blank" class="btn btn-normal">
|
<a href="http://<%= @ticket.registered_site.site_domain %>" target="_blank" class="btn btn-normal">
|
||||||
<i class="ticket-external-link-icon fa fa-external-link"></i>
|
<i class="ticket-external-link-icon fa fa-external-link"></i>
|
||||||
<%= @ticket.registered_site.title %>
|
<%= @ticket.registered_site.title %>
|
||||||
|
@ -32,6 +33,7 @@
|
||||||
<i class="ticket-external-link-icon fa fa-search"></i>
|
<i class="ticket-external-link-icon fa fa-search"></i>
|
||||||
Search tickets from <b><i><%= @ticket.registered_site.title %></i></b>
|
Search tickets from <b><i><%= @ticket.registered_site.title %></i></b>
|
||||||
</a>
|
</a>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="ticket-wrap">
|
<div class="ticket-wrap">
|
||||||
<div class="ticket-header">
|
<div class="ticket-header">
|
||||||
|
|
Loading…
Reference in New Issue