Player Ticket History - A Synopsis At A Glance (#75830)

## About The Pull Request

Adds a new front-end for viewing player ticket history stored in the
connected database.
Also adds a button to directly query for previous tickets from the
ticket panel.

## Pictures


![image](https://github.com/tgstation/tgstation/assets/12817816/4c01fb8b-3cf0-4d6c-a281-8eef2ff8f37c)

![image](https://github.com/tgstation/tgstation/assets/12817816/739f8b11-c064-4e90-bdae-22a4cc50c63d)

![image](https://github.com/tgstation/tgstation/assets/12817816/e4665d98-7bf9-4806-9d78-c8133682f7ae)

![image](https://github.com/tgstation/tgstation/assets/12817816/450edafc-b3b1-4013-8511-8328d944f440)
## Why It's Good For The Game

Gives admins the ability to look at a players behaviour in-game without
the need for external tooling, (statbus)
## Changelog

🆑
admin: Player Ticket History - view a player's ticket history without
the need to use external tooling.
/🆑
This commit is contained in:
Zephyr
2023-06-07 10:51:26 +12:00
committed by GitHub
parent 86ba209d5b
commit 89f5992a4c
6 changed files with 450 additions and 0 deletions
+4
View File
@@ -573,6 +573,10 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
for(var/I in ticket_interactions)
dat += "[I]<br>"
// Helper for opening directly to player ticket history
dat += "<br><br><b>Player Ticket History:</b>"
dat += "[FOURSPACES]<A href='?_src_=holder;[HrefToken()];player_ticket_history=[initiator_ckey]'>Open</A>"
// Append any tickets also opened by this user if relevant
var/list/related_tickets = GLOB.ahelp_tickets.TicketsByCKey(initiator_ckey)
if (related_tickets.len > 1)