{{define "user/tickets.html"}} {{template "public_favicon_link" .}} {{.Title}} - {{T "site_name"}} {{template "custom-head-embed" .}} {{template "public/header_frag" .}}
{{template "user_sidebar" .}}

{{T "user_menu_tickets"}}

{{T "user_pagehead_tip_tickets"}}
{{if .Data.TableMissingTip}}
{{.Data.TableMissingTip}}
{{end}} {{if and (not .Data.TableMissingTip) (gt .Data.UnreadCount 0)}}
{{T "ticket_unread_banner"}}
{{end}}

{{T "user_items_section_filter"}}

{{range .Data.Rows}} {{else}} {{end}}
{{T "ticket_col_no"}} {{T "ticket_col_title"}} {{T "ticket_col_status"}} {{T "ticket_col_updated"}} {{T "ticket_col_actions"}}
{{index . "ticket_no"}}
{{index . "title"}}
{{index . "status_text"}} {{if index . "has_new_reply"}}{{T "ticket_badge_new_reply"}}{{end}}
{{if index . "has_new_reply"}}{{T "ticket_badge_new_reply"}}{{end}} {{index . "status_text"}} {{index . "updated_at_str"}} {{if ne (asInt (index . "status")) 4}} {{end}}

{{T "ticket_empty"}}

{{T "ticket_empty_hint"}}

{{if gt .Data.TotalPages 1}} {{end}}