Fossil SCM

Only show the number of requests on the /test_env page if running on unix from "fossil server" or "fossil ui".

drh 2017-12-23 04:21 trunk
Commit f4a9df4dd0d304b02b190d646783b517619179e91498f31365764e547f428b95
1 file changed +3 -1
+3 -1
--- src/style.c
+++ src/style.c
@@ -908,11 +908,13 @@
908908
}
909909
zCap[i] = 0;
910910
@ g.userUid = %d(g.userUid)<br />
911911
@ g.zLogin = %h(g.zLogin)<br />
912912
@ g.isHuman = %d(g.isHuman)<br />
913
- @ g.nRequest = %d(g.nRequest)<br />
913
+ if( g.nRequest ){
914
+ @ g.nRequest = %d(g.nRequest)<br />
915
+ }
914916
if( g.nPendingRequest>1 ){
915917
@ g.nPendingRequest = %d(g.nPendingRequest)<br />
916918
}
917919
@ capabilities = %s(zCap)<br />
918920
for(i=0, c='a'; c<='z'; c++){
919921
--- src/style.c
+++ src/style.c
@@ -908,11 +908,13 @@
908 }
909 zCap[i] = 0;
910 @ g.userUid = %d(g.userUid)<br />
911 @ g.zLogin = %h(g.zLogin)<br />
912 @ g.isHuman = %d(g.isHuman)<br />
913 @ g.nRequest = %d(g.nRequest)<br />
 
 
914 if( g.nPendingRequest>1 ){
915 @ g.nPendingRequest = %d(g.nPendingRequest)<br />
916 }
917 @ capabilities = %s(zCap)<br />
918 for(i=0, c='a'; c<='z'; c++){
919
--- src/style.c
+++ src/style.c
@@ -908,11 +908,13 @@
908 }
909 zCap[i] = 0;
910 @ g.userUid = %d(g.userUid)<br />
911 @ g.zLogin = %h(g.zLogin)<br />
912 @ g.isHuman = %d(g.isHuman)<br />
913 if( g.nRequest ){
914 @ g.nRequest = %d(g.nRequest)<br />
915 }
916 if( g.nPendingRequest>1 ){
917 @ g.nPendingRequest = %d(g.nPendingRequest)<br />
918 }
919 @ capabilities = %s(zCap)<br />
920 for(i=0, c='a'; c<='z'; c++){
921

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button