mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 11:58:39 +01:00
516 internal links (#20428)
Convert all (appropriate) links to use the required `byond://` for 516 Added a grep to detect incompatible ones
This commit is contained in:
@@ -12,19 +12,19 @@ datum/admins/proc/notes_gethtml(var/ckey)
|
||||
var/savefile/notesfile = new(NOTESFILE)
|
||||
if(!notesfile) return SPAN_WARNING("Error: Cannot access [NOTESFILE]")
|
||||
if(ckey)
|
||||
. = "<b>Notes for <a href='?src=[REF(src)];notes=show'>[ckey]</a>:</b> <a href='?src=[REF(src)];notes=add;ckey=[ckey]'>\[+\]</a> <a href='?src=[REF(src)];notes=remove;ckey=[ckey]'>\[-\]</a><br>"
|
||||
. = "<b>Notes for <a href='byond://?src=[REF(src)];notes=show'>[ckey]</a>:</b> <a href='byond://?src=[REF(src)];notes=add;ckey=[ckey]'>\[+\]</a> <a href='byond://?src=[REF(src)];notes=remove;ckey=[ckey]'>\[-\]</a><br>"
|
||||
notesfile.cd = "/[ckey]"
|
||||
var/index = 1
|
||||
while( !notesfile.eof )
|
||||
var/note
|
||||
notesfile >> note
|
||||
. += "[note] <a href='?src=[REF(src)];notes=remove;ckey=[ckey];from=[index]'>\[-\]</a><br>"
|
||||
. += "[note] <a href='byond://?src=[REF(src)];notes=remove;ckey=[ckey];from=[index]'>\[-\]</a><br>"
|
||||
index++
|
||||
else
|
||||
. = "<b>All Notes:</b> <a href='?src=[REF(src)];notes=add'>\[+\]</a> <a href='?src=[REF(src)];notes=remove'>\[-\]</a><br>"
|
||||
. = "<b>All Notes:</b> <a href='byond://?src=[REF(src)];notes=add'>\[+\]</a> <a href='byond://?src=[REF(src)];notes=remove'>\[-\]</a><br>"
|
||||
notesfile.cd = "/"
|
||||
for(var/dir in notesfile.dir)
|
||||
. += "<a href='?src=[REF(src)];notes=show;ckey=[dir]'>[dir]</a><br>"
|
||||
. += "<a href='byond://?src=[REF(src)];notes=show;ckey=[dir]'>[dir]</a><br>"
|
||||
return
|
||||
|
||||
//handles removing entries from the buffer, or removing the entire directory if no start_index is given
|
||||
|
||||
Reference in New Issue
Block a user