Import Users tested

This commit is contained in:
2026-02-27 21:30:17 -07:00
parent 5794cb8a10
commit b6743da940
4 changed files with 42 additions and 6 deletions
+2 -2
View File
@@ -12,12 +12,12 @@ _(italicized items can be deferred)_
- _Chat (top menu link)_
- _Documentation (top menu link)_
- Quote banner rotation
- Sysadmin Menu:
- ~~Sysadmin Menu:~~
- ~~Edit Global Properties~~
- ~~View/Edit IP Address Bans~~
- ~~User Account Management~~
- ~~System Audit Logs~~
- Import User Accounts
- ~~Import User Accounts~~
- ~~Conferences list:~~
- ~~Find~~
- ~~Manage (reorder/show/hide/delete)~~
+5 -3
View File
@@ -801,7 +801,9 @@ func UserImport(ctxt ui.AmContext) (string, any) {
return "framed", "import_users.jet"
}
_ = count
_ = scroll
return "error", "Not yet implemented"
ctxt.VarMap().Set("backLink", "/sysadmin")
ctxt.VarMap().Set("headline", fmt.Sprintf("%d user(s) were imported successfully.", count))
ctxt.VarMap().Set("scroll", scroll)
ctxt.SetFrameTitle("Import Results")
return "framed", "import_results.jet"
}
-1
View File
@@ -151,7 +151,6 @@ func init() {
Renderer: renderSBOnlineUsers,
}
sideboxRegistry[database.SideboxIDOnlineUsers] = &sb3
log.Infof("sidebox registry has %d entries", len(sideboxRegistry))
}
// sbRender is a context used for controlling adding variables for sideboxes.
+35
View File
@@ -0,0 +1,35 @@
{*
* Amsterdam Web Communities System
* Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*}
<!-- Page Title -->
<div class="p-4">
<div class="mb-6">
<h1 class="text-blue-800 text-4xl font-bold mb-2">Import Results</h1>
<hr class="border-2 border-gray-400 w-4/5 mb-4">
</div>
<!-- Backlink -->
<div class="mb-4 flex gap-2">
[
<a class="text-blue-700 hover:text-blue-900 text-sm flex items-center gap-2 w-fit" href="{{ backLink }}">
<span class="text-xl">❌</span>
Close
</a>
]
</div>
<div class="font-bold text-black">{{ headline }}</div>
<div class="bg-gray-50 p-6 rounded-lg">
<div class="mb-6">
{{ range _, line := scroll }}
<p><code>{{ line }}</code></p>
{{ end }}
</div>
</div>
</div>