Libraryless. Click here for Pure Java version (3910L/23K).
1 | static LS gazelle_navLinks(S baseLink, S searchQuery, O... _) {
|
2 | optPar bool withTeam = true; |
3 | optPar bool withStats = true; |
4 | optPar bool flat; |
5 | L more = ll(ahref(baseLink + "/deletedPosts", "Deleted Posts")); |
6 | ret llNonNulls(flattenStringArray2( |
7 | ahref(baseLink + "/crud/UserPost?cmd=new", "New Post"), |
8 | searchQuery != null |
9 | ? hform(hinputfield(q := searchQuery, style := "width: 75px") + " " + hsubmit("Search"), style := "display: inline", action := baseLink + "/search")
|
10 | : ahref(baseLink + "/search", "Search"), |
11 | ahref(baseLink + "/rootPosts", "Root Posts"), |
12 | ahref(baseLink + "/allPosts", "All Posts"), |
13 | ahref(baseLink + "/latestPosts", "Latest Posts"), |
14 | ahref(baseLink + "/latestModifiedPosts", "Latest Changes"), |
15 | ahref(baseLink + "/mainPosts", "Main Posts"), |
16 | !withTeam ? null : ahref(baseLink + "/team", "Team"), |
17 | flat ? more : hPopDownButton(flattenStringArray2( |
18 | !withStats ? null : ahref(baseLink + "/stats", "Stats"), |
19 | more |
20 | )))); |
21 | } |
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: | 514 / 672 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |