static LS gazelle_navLinks(S baseLink, S searchQuery, O... _) { optPar bool withTeam = true; optPar bool withStats = true; optPar bool flat; L more = ll(ahref(baseLink + "/deletedPosts", "Deleted Posts")); ret llNonNulls(flattenStringArray2( ahref(baseLink + "/crud/UserPost?cmd=new", "New Post"), searchQuery != null ? hform(hinputfield(q := searchQuery, style := "width: 75px") + " " + hsubmit("Search"), style := "display: inline", action := baseLink + "/search") : ahref(baseLink + "/search", "Search"), ahref(baseLink + "/rootPosts", "Root Posts"), ahref(baseLink + "/allPosts", "All Posts"), ahref(baseLink + "/latestPosts", "Latest Posts"), ahref(baseLink + "/latestModifiedPosts", "Latest Changes"), ahref(baseLink + "/mainPosts", "Main Posts"), !withTeam ? null : ahref(baseLink + "/team", "Team"), flat ? more : hPopDownButton(flattenStringArray2( !withStats ? null : ahref(baseLink + "/stats", "Stats"), more )))); }