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