% 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 "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" %>
<%= stylesheet_link_tag "tickets/ticket_index" %>
<% end %>
<% if !@category.nil? %>
<%= @category.title %><%= " - history" if params[:type] == "history" %>
<%= render :partial => "search_form", locals: {:form_action => "/admin/tickets_manage/category/#{@category.id.to_s}"} %>
<% h = request.original_fullpath.split("?")[1] %>
<% if params[:type] == "history" %>
<% h = h.gsub("type=history","").chomp("&") %>
">View current
<% else %>
<% h = h.nil? ? "type=history" : "#{h}&type=history" %>
View history
<% end %>
<% else %>
Category Not found!
<% end %>
<% if !@tickets.nil? && @tickets.count > 0 %>
<%= render :partial => "ticket_by_c", :collection => @tickets %>
<% else %>
No tickets. |
<% end %>
<% if !@tickets.nil? && @tickets.count > 0 %>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@tickets), class: "pagination pagination-centered"
end
%>
<% end %>