moved System Administration link back into Administration community, fixed up some bugs around that

This commit is contained in:
2025-10-17 13:16:14 -06:00
parent 137bf35a8b
commit be5b3a426d
6 changed files with 40 additions and 15 deletions
+9 -1
View File
@@ -19,6 +19,14 @@ import (
"golang.org/x/text/language/display"
)
/* ShowCommunity renders the community profile display.
* Parameters:
* ctxt - The AmContext for the request.
* Returns:
* Command string dictating what to be rendered.
* Data as a parameter for the command string.
* Standard Go error status.
*/
func ShowCommunity(ctxt ui.AmContext) (string, any, error) {
me := ctxt.CurrentUser()
prefs, err := me.Prefs()
@@ -103,7 +111,7 @@ func ShowCommunity(ctxt ui.AmContext) (string, any, error) {
ctxt.VarMap().Set("addrLast", b.String())
if ci.Country != nil && *ci.Country != "" {
country := countries.ByName(*ci.Country)
ctxt.VarMap().Set("country", country.String())
ctxt.VarMap().Set("country", country.Emoji()+" "+country.String())
}
tag, err := comm.LanguageTag()
if err == nil && tag != nil {