tickets/app/views/admin/tickets_manage/tagged_tickets.html.erb

49 lines
2.1 KiB
Plaintext

<% 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 %>
<%= render :partial => "search_form", locals: {:form_action => "/admin/tickets_manage/tagged_tickets"} %>
<div class="ticket-container">
<div class="ticket-section">
<h3 class="ticket-section-heading type--ugrent">
<i class="ticket-section-heading-icon fa fa-eye-slash"></i>
Unread Tags
</h3>
<% @unread_tickets_categories.each do |category| %>
<div class="ticket-section-container t-strong-round">
<h4 class="ticket-category-title">
<i class="ticket-category-title-icon fa fa-tags"></i>
<%= category.title %>
</h4>
<%= render :partial => "ticket", :collection => @unread_tickets[category] %>
<div class="ticket-section-view-all">
<a class="ticket-section-view-all-btn" href="/admin/tickets_manage/category/<%= category.id.to_s %>">
<i class="ticket-section-view-all-icon fa fa-share"></i>
View all tickets from <%= category.title %>
</a>
</div>
</div>
<% end %>
</div>
<h3 class="ticket-section-heading type--normal">
<i class="ticket-section-heading-icon fa fa-eye"></i>
Read Tags
</h3>
<% @read_tickets_categories.each do |category| %>
<div class="ticket-section-container t-strong-round">
<h4 class="ticket-category-title">
<i class="ticket-category-title-icon fa fa-tags"></i>
<%= category.title %>
</h4>
<%= render :partial => "ticket", :collection => @read_tickets[category] %>
<div class="ticket-section-view-all">
<a class="ticket-section-view-all-btn" href="/admin/tickets_manage/category/<%= category.id.to_s %>">
<i class="ticket-section-view-all-icon fa fa-share"></i>
View all tickets from <%= category.title %>
</a>
</div>
</div>
<% end %>
</div>
<script type="text/javascript" src="/assets/search.js"></script>