Libraryless. Click here for Pure Java version (3910L/23K).
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 )))); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030246 |
Snippet name: | gazelle_navLinks |
Eternal ID of this version: | #1030246/10 |
Text MD5: | 62d6f0f4867b45261cb49e5e2148ab2e |
Transpilation MD5: | 4737c70d357881bb83ed5b716ffaca67 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-02 22:14:08 |
Source code size: | 1021 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 284 / 394 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |