mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Requested Interview Features Update (Rave Radbury Edition) (#59621)
Added a few things that were requested by RaveRadbury to be added to the interview system: * Where appropriate clickable links are now added to open a interview in similar fashion to tickets * Changed fields to be read-only for admins looking at interviews while they're being written * Added the ability to include markdown-style links to interview welcome messages and interview questions * Updated the default questions to add a question about if the user has read the rules to demonstrate the ability to include links
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
GLOB.interviews.approved_ckeys |= owner_ckey
|
||||
GLOB.interviews.close_interview(src)
|
||||
log_admin_private("[key_name(approved_by)] has approved interview #[id] for [owner_ckey][!owner ? "(DC)": ""].")
|
||||
message_admins("<span class='adminnotice'>[key_name(approved_by)] has approved interview #[id] for [owner_ckey][!owner ? "(DC)": ""].</span>")
|
||||
message_admins("<span class='adminnotice'>[key_name(approved_by)] has approved [link_self()] for [owner_ckey][!owner ? "(DC)": ""].</span>")
|
||||
if (owner)
|
||||
SEND_SOUND(owner, sound('sound/effects/adminhelp.ogg'))
|
||||
to_chat(owner, "<font color='red' size='4'><b>-- Interview Update --</b></font>" \
|
||||
@@ -79,7 +79,7 @@
|
||||
GLOB.interviews.close_interview(src)
|
||||
GLOB.interviews.cooldown_ckeys |= owner_ckey
|
||||
log_admin_private("[key_name(denied_by)] has denied interview #[id] for [owner_ckey][!owner ? "(DC)": ""].")
|
||||
message_admins("<span class='adminnotice'>[key_name(denied_by)] has denied interview #[id] for [owner_ckey][!owner ? "(DC)": ""].</span>")
|
||||
message_admins("<span class='adminnotice'>[key_name(denied_by)] has denied [link_self()] for [owner_ckey][!owner ? "(DC)": ""].</span>")
|
||||
addtimer(CALLBACK(GLOB.interviews, /datum/interview_manager.proc/release_from_cooldown, owner_ckey), 180)
|
||||
if (owner)
|
||||
SEND_SOUND(owner, sound('sound/effects/adminhelp.ogg'))
|
||||
@@ -160,3 +160,9 @@
|
||||
"response" = responses.len < i ? null : responses[i]
|
||||
)
|
||||
.["questions"] += list(data)
|
||||
|
||||
/**
|
||||
* Generates a clickable link to open this interview
|
||||
*/
|
||||
/datum/interview/proc/link_self()
|
||||
return "<a href='?_src_=holder;[HrefToken(TRUE)];interview=[REF(src)]'>Interview #[id]</a>"
|
||||
|
||||
Reference in New Issue
Block a user