Move WTV Admin to wtv-tricks, add link to PB

This commit is contained in:
zefie
2023-10-08 14:41:02 -04:00
parent feee798ad8
commit 3a2e874887
3 changed files with 12 additions and 11 deletions

View File

@@ -1,5 +1,14 @@
var minisrv_service_file = true;
var notAdminAlert = new clientShowAlert({
'image': minisrv_config.config.service_logo,
'message': "Sorry, you are not configured as an admin on this server.<br><br>If you are the server operator, please<br> see <strong>user_config.example.json</strong><br> for an example on how to configure yourself as an administrator.",
'buttonlabel1': "Ugh, fine.",
'buttonaction1': "client:donothing",
'noback': true,
}).getURL();
headers = `200 OK
Content-Type: text/html`
@@ -48,7 +57,7 @@ data += `
<tr>
<td colspan=3 height=6>
<tr>
<td><!-- TODO -->
<td><a href="${(wtvshared.isAdmin(session_data)) ? "wtv-admin:/admin" : notAdminAlert}">${minisrv_config.config.service_name} Admin</a>
<td width = 25>
<td><!-- TODO -->
<tr>