<% content_for :page_specific_css do %> <%= stylesheet_link_tag "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" %> <%= stylesheet_link_tag "tickets/ticket_show" %> <%= stylesheet_link_tag "select2/select2" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/jquery.form.js" %> <%= javascript_include_tag "validator" %> <%= javascript_include_tag "select2/select2.min" %> <%= javascript_include_tag "jquery.viewport" %> <% end %> <% if !@ticket .nil? %> <% case @ticket.status when "open" badge_class = "t-status-open" when "closed" badge_class = "t-status-close" when "commenced" badge_class = "t-status-processing" end %>
Back to Dashboard <% if !@ticket.registered_site.nil? %> <%= @ticket.registered_site.title %> Search tickets from <%= @ticket.registered_site.title %> <% else %> Site Deleted <% end %>
" >

#<%= @ticket.uid %> - <%= @ticket.subject[0..50] %> <% if !@ticket.taken_by.nil? %> <% user = User.find(@ticket.taken_by) %> <% if user.nil? || user.member_profile.avatar.nil? || user.member_profile.avatar.thumb.url == "thumb_person.png" avatar = "/assets/thumb_person.png" else avatar = user.member_profile.avatar.thumb.url end %>
<%= user.name rescue "Member was deleted" %>
<% end %>

<%= !@ticket.ticket_creater_name.nil? ? @ticket.ticket_creater_name : @ticket.ticket_creater_id %> <% dt = DateTime.parse(@ticket.created_at.to_s) %> <%= dt.strftime("%d %B %Y - %H:%M") %>
<% if @ticket.status != "closed" %>
" id="myonoffswitch" data-url="/admin/tickets_manage/<%= @ticket.id.to_s %>/toggleurgent">
<% end %> <%= @ticket.status %> <%= @ticket.category.title %>
<%= render :partial => "query", :collection => @ticket.ticket_queries.asc(:created_at) %>
<% if params[:reopen] == "true"%> <% if @ticket.status == "closed" %>
<% else %>

Ticket is already opened.

<% end %> <% end %>
<% else %>
Error in fetching ticket.
<% end %>