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

57 lines
1.7 KiB
Plaintext
Raw Normal View History

2015-08-18 18:28:47 +00:00
<% 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" %>
<style type="text/css">
.past-link {
font-size: 14px;
margin-top: 6px;
}
.past-link a {
color: #fff;
}
.past-link a:hover {
color: #fff;
}
</style>
2015-08-18 18:28:47 +00:00
<% end %>
2021-07-15 11:51:44 +00:00
<%= render :partial => "search_form", locals: {:form_action => "/admin/tickets_manage/my_tickets"} %>
<div class="ticket-container">
<h3 class="ticket-section-heading type--normal">
<i class="ticket-section-heading-icon fa fa-clock-o"></i>
Tickets
<div class="pull-right past-link">
<% if params[:type] == "history" %>
2021-07-15 11:51:44 +00:00
<a href="/admin/tickets_manage/my_tickets">View my current tickets</a>
<% else %>
2021-07-15 11:51:44 +00:00
<a href="/admin/tickets_manage/my_tickets?type=history">View my past tickets</a>
<% end %>
</div>
</h3>
2015-08-18 18:28:47 +00:00
<% @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 => @tickets[category] %>
<div class="ticket-section-view-all">
2021-07-15 11:51:44 +00:00
<a class="ticket-section-view-all-btn" href="/admin/tickets_manage/category/<%= category.id.to_s %>?takenby=<%= current_user.id.to_s %>">
<i class="ticket-section-view-all-icon fa fa-share"></i>
View all tickets from <%= category.title %>
</a>
</div>
2015-08-18 18:28:47 +00:00
</div>
<% end %>
</div>
<script type="text/javascript" src="/assets/search.js"></script>