Fossil SCM

added more cross reference

Ratte 2010-10-10 08:59 wolfgangHelpCmd
Commit c2ef37159078ec3781a1d477d05a5f7a7d0e1b02
+1 -1
--- src/browse.c
+++ src/browse.c
@@ -247,7 +247,7 @@
247247
@ </a></li>
248248
}
249249
}
250250
db_finalize(&q);
251251
@ </ul></td></tr></table>
252
- style_footer_cmdref("ls");
252
+ style_footer_cmdref("ls",0);
253253
}
254254
--- src/browse.c
+++ src/browse.c
@@ -247,7 +247,7 @@
247 @ </a></li>
248 }
249 }
250 db_finalize(&q);
251 @ </ul></td></tr></table>
252 style_footer_cmdref("ls");
253 }
254
--- src/browse.c
+++ src/browse.c
@@ -247,7 +247,7 @@
247 @ </a></li>
248 }
249 }
250 db_finalize(&q);
251 @ </ul></td></tr></table>
252 style_footer_cmdref("ls",0);
253 }
254
--- src/clone.c
+++ src/clone.c
@@ -37,10 +37,11 @@
3737
**
3838
** Options:
3939
**
4040
** --admin-user|-A USERNAME
4141
**
42
+** See also: <a>push</a>, <a>pull</a>, <a>remote-url</a>, <a>sync</a>
4243
*/
4344
void clone_cmd(void){
4445
char *zPassword;
4546
const char *zDefaultUser; /* Optional name of the default user */
4647
4748
--- src/clone.c
+++ src/clone.c
@@ -37,10 +37,11 @@
37 **
38 ** Options:
39 **
40 ** --admin-user|-A USERNAME
41 **
 
42 */
43 void clone_cmd(void){
44 char *zPassword;
45 const char *zDefaultUser; /* Optional name of the default user */
46
47
--- src/clone.c
+++ src/clone.c
@@ -37,10 +37,11 @@
37 **
38 ** Options:
39 **
40 ** --admin-user|-A USERNAME
41 **
42 ** See also: <a>push</a>, <a>pull</a>, <a>remote-url</a>, <a>sync</a>
43 */
44 void clone_cmd(void){
45 char *zPassword;
46 const char *zDefaultUser; /* Optional name of the default user */
47
48
+1 -1
--- src/diff.c
+++ src/diff.c
@@ -815,11 +815,11 @@
815815
for(i=0; i<ann.nOrig; i++){
816816
((char*)ann.aOrig[i].z)[ann.aOrig[i].n] = 0;
817817
@ %s(ann.aOrig[i].zSrc): %h(ann.aOrig[i].z)
818818
}
819819
@ </pre>
820
- style_footer_cmdref("annotate");
820
+ style_footer_cmdref("annotate",0);
821821
}
822822
823823
/*
824824
** COMMAND: annotate
825825
**
826826
--- src/diff.c
+++ src/diff.c
@@ -815,11 +815,11 @@
815 for(i=0; i<ann.nOrig; i++){
816 ((char*)ann.aOrig[i].z)[ann.aOrig[i].n] = 0;
817 @ %s(ann.aOrig[i].zSrc): %h(ann.aOrig[i].z)
818 }
819 @ </pre>
820 style_footer_cmdref("annotate");
821 }
822
823 /*
824 ** COMMAND: annotate
825 **
826
--- src/diff.c
+++ src/diff.c
@@ -815,11 +815,11 @@
815 for(i=0; i<ann.nOrig; i++){
816 ((char*)ann.aOrig[i].z)[ann.aOrig[i].n] = 0;
817 @ %s(ann.aOrig[i].zSrc): %h(ann.aOrig[i].z)
818 }
819 @ </pre>
820 style_footer_cmdref("annotate",0);
821 }
822
823 /*
824 ** COMMAND: annotate
825 **
826
+1 -1
--- src/finfo.c
+++ src/finfo.c
@@ -212,7 +212,7 @@
212212
@ </td></tr>
213213
}
214214
}
215215
@ </table>
216216
timeline_output_graph_javascript(pGraph);
217
- style_footer_cmdref("finfo");
217
+ style_footer_cmdref("finfo",0);
218218
}
219219
--- src/finfo.c
+++ src/finfo.c
@@ -212,7 +212,7 @@
212 @ </td></tr>
213 }
214 }
215 @ </table>
216 timeline_output_graph_javascript(pGraph);
217 style_footer_cmdref("finfo");
218 }
219
--- src/finfo.c
+++ src/finfo.c
@@ -212,7 +212,7 @@
212 @ </td></tr>
213 }
214 }
215 @ </table>
216 timeline_output_graph_javascript(pGraph);
217 style_footer_cmdref("finfo",0);
218 }
219
+6 -6
--- src/info.c
+++ src/info.c
@@ -467,11 +467,11 @@
467467
const char *zOld = db_column_text(&q,1);
468468
const char *zNew = db_column_text(&q,2);
469469
append_file_change_line(zName, zOld, zNew, showDiff);
470470
}
471471
db_finalize(&q);
472
- style_footer_cmdref("info");
472
+ style_footer_cmdref("info",0);
473473
}
474474
475475
/*
476476
** WEBPAGE: winfo
477477
** URL: /winfo?name=RID
@@ -550,11 +550,11 @@
550550
wiki_convert(&wiki, 0, 0);
551551
blob_reset(&wiki);
552552
}
553553
manifest_clear(&m);
554554
}
555
- style_footer_cmdref("info");
555
+ style_footer_cmdref("info",0);
556556
}
557557
558558
/*
559559
** Show a webpage error message
560560
*/
@@ -654,11 +654,11 @@
654654
@ <tr><td>details:</td><td><input type="checkbox" name="detail"
655655
@ checked="checked" value="1" /></td></tr>
656656
@ <tr><td></td><td></td><td>
657657
@ <input type="submit" name="diff" value="diff" /></td></tr></table>
658658
@ </div></form>
659
- style_footer_cmdref("diff");
659
+ style_footer_cmdref("diff",0);
660660
return;
661661
}else if( vdiff_parse_manifest("from", &ridFrom, &mFrom)
662662
|| vdiff_parse_manifest("to", &ridTo, &mTo)
663663
){
664664
return;
@@ -701,11 +701,11 @@
701701
}
702702
}
703703
manifest_clear(&mFrom);
704704
manifest_clear(&mTo);
705705
706
- style_footer_cmdref("diff");
706
+ style_footer_cmdref("diff",0);
707707
}
708708
709709
/*
710710
** Write a description of an object to the www reply.
711711
**
@@ -1173,11 +1173,11 @@
11731173
hexdump(&content);
11741174
@ </pre>
11751175
}
11761176
@ </blockquote>
11771177
}
1178
- style_footer_cmdref( "artifact" );
1178
+ style_footer_cmdref( "artifact",0 );
11791179
}
11801180
11811181
/*
11821182
** WEBPAGE: tinfo
11831183
** URL: /tinfo?name=ARTIFACTID
@@ -1233,11 +1233,11 @@
12331233
@
12341234
@ <ol>
12351235
free(zDate);
12361236
ticket_output_change_artifact(&m);
12371237
manifest_clear(&m);
1238
- style_footer_cmdref("info");
1238
+ style_footer_cmdref("info",0);
12391239
}
12401240
12411241
12421242
/*
12431243
** WEBPAGE: info
12441244
--- src/info.c
+++ src/info.c
@@ -467,11 +467,11 @@
467 const char *zOld = db_column_text(&q,1);
468 const char *zNew = db_column_text(&q,2);
469 append_file_change_line(zName, zOld, zNew, showDiff);
470 }
471 db_finalize(&q);
472 style_footer_cmdref("info");
473 }
474
475 /*
476 ** WEBPAGE: winfo
477 ** URL: /winfo?name=RID
@@ -550,11 +550,11 @@
550 wiki_convert(&wiki, 0, 0);
551 blob_reset(&wiki);
552 }
553 manifest_clear(&m);
554 }
555 style_footer_cmdref("info");
556 }
557
558 /*
559 ** Show a webpage error message
560 */
@@ -654,11 +654,11 @@
654 @ <tr><td>details:</td><td><input type="checkbox" name="detail"
655 @ checked="checked" value="1" /></td></tr>
656 @ <tr><td></td><td></td><td>
657 @ <input type="submit" name="diff" value="diff" /></td></tr></table>
658 @ </div></form>
659 style_footer_cmdref("diff");
660 return;
661 }else if( vdiff_parse_manifest("from", &ridFrom, &mFrom)
662 || vdiff_parse_manifest("to", &ridTo, &mTo)
663 ){
664 return;
@@ -701,11 +701,11 @@
701 }
702 }
703 manifest_clear(&mFrom);
704 manifest_clear(&mTo);
705
706 style_footer_cmdref("diff");
707 }
708
709 /*
710 ** Write a description of an object to the www reply.
711 **
@@ -1173,11 +1173,11 @@
1173 hexdump(&content);
1174 @ </pre>
1175 }
1176 @ </blockquote>
1177 }
1178 style_footer_cmdref( "artifact" );
1179 }
1180
1181 /*
1182 ** WEBPAGE: tinfo
1183 ** URL: /tinfo?name=ARTIFACTID
@@ -1233,11 +1233,11 @@
1233 @
1234 @ <ol>
1235 free(zDate);
1236 ticket_output_change_artifact(&m);
1237 manifest_clear(&m);
1238 style_footer_cmdref("info");
1239 }
1240
1241
1242 /*
1243 ** WEBPAGE: info
1244
--- src/info.c
+++ src/info.c
@@ -467,11 +467,11 @@
467 const char *zOld = db_column_text(&q,1);
468 const char *zNew = db_column_text(&q,2);
469 append_file_change_line(zName, zOld, zNew, showDiff);
470 }
471 db_finalize(&q);
472 style_footer_cmdref("info",0);
473 }
474
475 /*
476 ** WEBPAGE: winfo
477 ** URL: /winfo?name=RID
@@ -550,11 +550,11 @@
550 wiki_convert(&wiki, 0, 0);
551 blob_reset(&wiki);
552 }
553 manifest_clear(&m);
554 }
555 style_footer_cmdref("info",0);
556 }
557
558 /*
559 ** Show a webpage error message
560 */
@@ -654,11 +654,11 @@
654 @ <tr><td>details:</td><td><input type="checkbox" name="detail"
655 @ checked="checked" value="1" /></td></tr>
656 @ <tr><td></td><td></td><td>
657 @ <input type="submit" name="diff" value="diff" /></td></tr></table>
658 @ </div></form>
659 style_footer_cmdref("diff",0);
660 return;
661 }else if( vdiff_parse_manifest("from", &ridFrom, &mFrom)
662 || vdiff_parse_manifest("to", &ridTo, &mTo)
663 ){
664 return;
@@ -701,11 +701,11 @@
701 }
702 }
703 manifest_clear(&mFrom);
704 manifest_clear(&mTo);
705
706 style_footer_cmdref("diff",0);
707 }
708
709 /*
710 ** Write a description of an object to the www reply.
711 **
@@ -1173,11 +1173,11 @@
1173 hexdump(&content);
1174 @ </pre>
1175 }
1176 @ </blockquote>
1177 }
1178 style_footer_cmdref( "artifact",0 );
1179 }
1180
1181 /*
1182 ** WEBPAGE: tinfo
1183 ** URL: /tinfo?name=ARTIFACTID
@@ -1233,11 +1233,11 @@
1233 @
1234 @ <ol>
1235 free(zDate);
1236 ticket_output_change_artifact(&m);
1237 manifest_clear(&m);
1238 style_footer_cmdref("info",0);
1239 }
1240
1241
1242 /*
1243 ** WEBPAGE: info
1244
+2 -2
--- src/main.c
+++ src/main.c
@@ -692,13 +692,13 @@
692692
}else{
693693
zDest[dest++] = zSrc[src++];
694694
}
695695
}
696696
zDest[dest] = 0;
697
- @ <pre>%s(zDest)</pre>
697
+ @ <div class="cmdhelp">%s(zDest)</div>
698698
free(zDest);
699
- @ <hr>additional information may be found in the web documentation:
699
+ @ <hr/>additional information may be found in the web documentation:
700700
@ <a href="http://www.fossil-scm.org/fossil/doc/tip/www/cmd_%s(aCommand[idx].zName).wiki">
701701
@ cmd_%s(aCommand[idx].zName)</a>,
702702
}
703703
}
704704
@ see also the list of
705705
--- src/main.c
+++ src/main.c
@@ -692,13 +692,13 @@
692 }else{
693 zDest[dest++] = zSrc[src++];
694 }
695 }
696 zDest[dest] = 0;
697 @ <pre>%s(zDest)</pre>
698 free(zDest);
699 @ <hr>additional information may be found in the web documentation:
700 @ <a href="http://www.fossil-scm.org/fossil/doc/tip/www/cmd_%s(aCommand[idx].zName).wiki">
701 @ cmd_%s(aCommand[idx].zName)</a>,
702 }
703 }
704 @ see also the list of
705
--- src/main.c
+++ src/main.c
@@ -692,13 +692,13 @@
692 }else{
693 zDest[dest++] = zSrc[src++];
694 }
695 }
696 zDest[dest] = 0;
697 @ <div class="cmdhelp">%s(zDest)</div>
698 free(zDest);
699 @ <hr/>additional information may be found in the web documentation:
700 @ <a href="http://www.fossil-scm.org/fossil/doc/tip/www/cmd_%s(aCommand[idx].zName).wiki">
701 @ cmd_%s(aCommand[idx].zName)</a>,
702 }
703 }
704 @ see also the list of
705
+1 -1
--- src/report.c
+++ src/report.c
@@ -80,11 +80,11 @@
8080
Th_Render(zScript);
8181
8282
blob_reset(&ril);
8383
if( g.thTrace ) Th_Trace("END_REPORTLIST<br />\n", -1);
8484
85
- style_footer();
85
+ style_footer_cmdref("ticket",0);
8686
}
8787
8888
/*
8989
** Remove whitespace from both ends of a string.
9090
*/
9191
--- src/report.c
+++ src/report.c
@@ -80,11 +80,11 @@
80 Th_Render(zScript);
81
82 blob_reset(&ril);
83 if( g.thTrace ) Th_Trace("END_REPORTLIST<br />\n", -1);
84
85 style_footer();
86 }
87
88 /*
89 ** Remove whitespace from both ends of a string.
90 */
91
--- src/report.c
+++ src/report.c
@@ -80,11 +80,11 @@
80 Th_Render(zScript);
81
82 blob_reset(&ril);
83 if( g.thTrace ) Th_Trace("END_REPORTLIST<br />\n", -1);
84
85 style_footer_cmdref("ticket",0);
86 }
87
88 /*
89 ** Remove whitespace from both ends of a string.
90 */
91
+6 -6
--- src/setup.c
+++ src/setup.c
@@ -217,11 +217,11 @@
217217
@ <span class="usertype">nobody</span>.
218218
@ </p></li>
219219
@
220220
@ </ol>
221221
@ </td></tr></table>
222
- style_footer_cmdref("user");
222
+ style_footer_cmdref("user",0);
223223
}
224224
225225
/*
226226
** Return true if zPw is a valid password string. A valid
227227
** password string is:
@@ -664,11 +664,11 @@
664664
@ template for users who are allowed more access than
665665
@ <span class="usertype">anonymous</span>,
666666
@ but less than a <span class="usertype">developer</span>.
667667
@ </p></li>
668668
@ </ul>
669
- style_footer_cmdref("user");
669
+ style_footer_cmdref("user",0);
670670
}
671671
672672
673673
/*
674674
** Generate a checkbox for an attribute.
@@ -1004,11 +1004,11 @@
10041004
@ See also the <a href="setup_header">header</a> and
10051005
@ <a href="setup_footer">footer</a> editing screens.
10061006
@ <blockquote><pre>
10071007
cgi_append_default_css();
10081008
@ </pre></blockquote>
1009
- style_footer();
1009
+ style_footer_cmdref("configuration","area skin");
10101010
db_end_transaction(0);
10111011
}
10121012
10131013
/*
10141014
** WEBPAGE: setup_header
@@ -1042,11 +1042,11 @@
10421042
@ See also the <a href="setup_editcss">CSS</a> and
10431043
@ <a href="setup_footer">footer</a> editing screeens.
10441044
@ <blockquote><pre>
10451045
@ %h(zDefaultHeader)
10461046
@ </pre></blockquote>
1047
- style_footer();
1047
+ style_footer_cmdref("configuration","area skin");
10481048
db_end_transaction(0);
10491049
}
10501050
10511051
/*
10521052
** WEBPAGE: setup_footer
@@ -1079,11 +1079,11 @@
10791079
@ See also the <a href="setup_editcss">CSS</a> and
10801080
@ <a href="setup_header">header</a> editing screens.
10811081
@ <blockquote><pre>
10821082
@ %h(zDefaultFooter)
10831083
@ </pre></blockquote>
1084
- style_footer();
1084
+ style_footer_cmdref("configuration","area skin");
10851085
db_end_transaction(0);
10861086
}
10871087
10881088
/*
10891089
** WEBPAGE: setup_logo
@@ -1148,8 +1148,8 @@
11481148
@
11491149
@ <p><span class="note">Note:</span> Your browser has probably cached the
11501150
@ logo image, so you will probably need to press the Reload button on your
11511151
@ browser after changing the logo to provoke your browser to reload the new
11521152
@ logo image. </p>
1153
- style_footer();
1153
+ style_footer_cmdref("configuration","area skin");
11541154
db_end_transaction(0);
11551155
}
11561156
--- src/setup.c
+++ src/setup.c
@@ -217,11 +217,11 @@
217 @ <span class="usertype">nobody</span>.
218 @ </p></li>
219 @
220 @ </ol>
221 @ </td></tr></table>
222 style_footer_cmdref("user");
223 }
224
225 /*
226 ** Return true if zPw is a valid password string. A valid
227 ** password string is:
@@ -664,11 +664,11 @@
664 @ template for users who are allowed more access than
665 @ <span class="usertype">anonymous</span>,
666 @ but less than a <span class="usertype">developer</span>.
667 @ </p></li>
668 @ </ul>
669 style_footer_cmdref("user");
670 }
671
672
673 /*
674 ** Generate a checkbox for an attribute.
@@ -1004,11 +1004,11 @@
1004 @ See also the <a href="setup_header">header</a> and
1005 @ <a href="setup_footer">footer</a> editing screens.
1006 @ <blockquote><pre>
1007 cgi_append_default_css();
1008 @ </pre></blockquote>
1009 style_footer();
1010 db_end_transaction(0);
1011 }
1012
1013 /*
1014 ** WEBPAGE: setup_header
@@ -1042,11 +1042,11 @@
1042 @ See also the <a href="setup_editcss">CSS</a> and
1043 @ <a href="setup_footer">footer</a> editing screeens.
1044 @ <blockquote><pre>
1045 @ %h(zDefaultHeader)
1046 @ </pre></blockquote>
1047 style_footer();
1048 db_end_transaction(0);
1049 }
1050
1051 /*
1052 ** WEBPAGE: setup_footer
@@ -1079,11 +1079,11 @@
1079 @ See also the <a href="setup_editcss">CSS</a> and
1080 @ <a href="setup_header">header</a> editing screens.
1081 @ <blockquote><pre>
1082 @ %h(zDefaultFooter)
1083 @ </pre></blockquote>
1084 style_footer();
1085 db_end_transaction(0);
1086 }
1087
1088 /*
1089 ** WEBPAGE: setup_logo
@@ -1148,8 +1148,8 @@
1148 @
1149 @ <p><span class="note">Note:</span> Your browser has probably cached the
1150 @ logo image, so you will probably need to press the Reload button on your
1151 @ browser after changing the logo to provoke your browser to reload the new
1152 @ logo image. </p>
1153 style_footer();
1154 db_end_transaction(0);
1155 }
1156
--- src/setup.c
+++ src/setup.c
@@ -217,11 +217,11 @@
217 @ <span class="usertype">nobody</span>.
218 @ </p></li>
219 @
220 @ </ol>
221 @ </td></tr></table>
222 style_footer_cmdref("user",0);
223 }
224
225 /*
226 ** Return true if zPw is a valid password string. A valid
227 ** password string is:
@@ -664,11 +664,11 @@
664 @ template for users who are allowed more access than
665 @ <span class="usertype">anonymous</span>,
666 @ but less than a <span class="usertype">developer</span>.
667 @ </p></li>
668 @ </ul>
669 style_footer_cmdref("user",0);
670 }
671
672
673 /*
674 ** Generate a checkbox for an attribute.
@@ -1004,11 +1004,11 @@
1004 @ See also the <a href="setup_header">header</a> and
1005 @ <a href="setup_footer">footer</a> editing screens.
1006 @ <blockquote><pre>
1007 cgi_append_default_css();
1008 @ </pre></blockquote>
1009 style_footer_cmdref("configuration","area skin");
1010 db_end_transaction(0);
1011 }
1012
1013 /*
1014 ** WEBPAGE: setup_header
@@ -1042,11 +1042,11 @@
1042 @ See also the <a href="setup_editcss">CSS</a> and
1043 @ <a href="setup_footer">footer</a> editing screeens.
1044 @ <blockquote><pre>
1045 @ %h(zDefaultHeader)
1046 @ </pre></blockquote>
1047 style_footer_cmdref("configuration","area skin");
1048 db_end_transaction(0);
1049 }
1050
1051 /*
1052 ** WEBPAGE: setup_footer
@@ -1079,11 +1079,11 @@
1079 @ See also the <a href="setup_editcss">CSS</a> and
1080 @ <a href="setup_header">header</a> editing screens.
1081 @ <blockquote><pre>
1082 @ %h(zDefaultFooter)
1083 @ </pre></blockquote>
1084 style_footer_cmdref("configuration","area skin");
1085 db_end_transaction(0);
1086 }
1087
1088 /*
1089 ** WEBPAGE: setup_logo
@@ -1148,8 +1148,8 @@
1148 @
1149 @ <p><span class="note">Note:</span> Your browser has probably cached the
1150 @ logo image, so you will probably need to press the Reload button on your
1151 @ browser after changing the logo to provoke your browser to reload the new
1152 @ logo image. </p>
1153 style_footer_cmdref("configuration","area skin");
1154 db_end_transaction(0);
1155 }
1156
+1 -1
--- src/skins.c
+++ src/skins.c
@@ -840,8 +840,8 @@
840840
@ </form></li>
841841
}
842842
}
843843
db_finalize(&q);
844844
@ </ol>
845
- style_footer();
845
+ style_footer_cmdref("configuration","area skin");
846846
db_end_transaction(0);
847847
}
848848
--- src/skins.c
+++ src/skins.c
@@ -840,8 +840,8 @@
840 @ </form></li>
841 }
842 }
843 db_finalize(&q);
844 @ </ol>
845 style_footer();
846 db_end_transaction(0);
847 }
848
--- src/skins.c
+++ src/skins.c
@@ -840,8 +840,8 @@
840 @ </form></li>
841 }
842 }
843 db_finalize(&q);
844 @ </ol>
845 style_footer_cmdref("configuration","area skin");
846 db_end_transaction(0);
847 }
848
+9 -2
--- src/style.c
+++ src/style.c
@@ -119,13 +119,13 @@
119119
120120
/*
121121
** append a reference to command line to a web page
122122
** and generate the footer
123123
*/
124
-void style_footer_cmdref( const char * const zCmd ){
124
+void style_footer_cmdref( const char * const zCmd, const char * const zSubCmd ){
125125
@ <div class="cmdref">See also command line help:
126
- @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a>
126
+ @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a> %s(zSubCmd?zSubCmd:"")
127127
@ </div>
128128
style_footer();
129129
}
130130
131131
/*
@@ -747,10 +747,17 @@
747747
{ "a.hidden",
748748
"format for links, that should not be very visible",
749749
@ font-size: xx-small;
750750
@ color: #aaaaaa;
751751
},
752
+ { "div.cmdhelp",
753
+ "format for single command display on the gui help page",
754
+ @ font-family: monospace;
755
+ @ padding-left: 4em;
756
+ @ padding-bottom: 1em;
757
+ @ white-space: pre;
758
+ },
752759
{ "div.cmdref",
753760
"format for references to command line help entries the actual gui page."
754761
"set \"display\" to \"none\" to suppress the display",
755762
@ font-size: small;
756763
@ text-align: right;
757764
--- src/style.c
+++ src/style.c
@@ -119,13 +119,13 @@
119
120 /*
121 ** append a reference to command line to a web page
122 ** and generate the footer
123 */
124 void style_footer_cmdref( const char * const zCmd ){
125 @ <div class="cmdref">See also command line help:
126 @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a>
127 @ </div>
128 style_footer();
129 }
130
131 /*
@@ -747,10 +747,17 @@
747 { "a.hidden",
748 "format for links, that should not be very visible",
749 @ font-size: xx-small;
750 @ color: #aaaaaa;
751 },
 
 
 
 
 
 
 
752 { "div.cmdref",
753 "format for references to command line help entries the actual gui page."
754 "set \"display\" to \"none\" to suppress the display",
755 @ font-size: small;
756 @ text-align: right;
757
--- src/style.c
+++ src/style.c
@@ -119,13 +119,13 @@
119
120 /*
121 ** append a reference to command line to a web page
122 ** and generate the footer
123 */
124 void style_footer_cmdref( const char * const zCmd, const char * const zSubCmd ){
125 @ <div class="cmdref">See also command line help:
126 @ <a href="help?cmd=%s(zCmd)">%s(zCmd)</a> %s(zSubCmd?zSubCmd:"")
127 @ </div>
128 style_footer();
129 }
130
131 /*
@@ -747,10 +747,17 @@
747 { "a.hidden",
748 "format for links, that should not be very visible",
749 @ font-size: xx-small;
750 @ color: #aaaaaa;
751 },
752 { "div.cmdhelp",
753 "format for single command display on the gui help page",
754 @ font-family: monospace;
755 @ padding-left: 4em;
756 @ padding-bottom: 1em;
757 @ white-space: pre;
758 },
759 { "div.cmdref",
760 "format for references to command line help entries the actual gui page."
761 "set \"display\" to \"none\" to suppress the display",
762 @ font-size: small;
763 @ text-align: right;
764
+1 -1
--- src/tag.c
+++ src/tag.c
@@ -531,11 +531,11 @@
531531
@ <li><span class="tagDsp">%h(zName)</span></li>
532532
}
533533
}
534534
@ </ul>
535535
db_finalize(&q);
536
- style_footer();
536
+ style_footer_cmdref("tags","list");
537537
}
538538
539539
/*
540540
** Draw the names of all tags added to check-in rid. Only tags
541541
** that are directly applied to rid are named. Propagated tags
542542
--- src/tag.c
+++ src/tag.c
@@ -531,11 +531,11 @@
531 @ <li><span class="tagDsp">%h(zName)</span></li>
532 }
533 }
534 @ </ul>
535 db_finalize(&q);
536 style_footer();
537 }
538
539 /*
540 ** Draw the names of all tags added to check-in rid. Only tags
541 ** that are directly applied to rid are named. Propagated tags
542
--- src/tag.c
+++ src/tag.c
@@ -531,11 +531,11 @@
531 @ <li><span class="tagDsp">%h(zName)</span></li>
532 }
533 }
534 @ </ul>
535 db_finalize(&q);
536 style_footer_cmdref("tags","list");
537 }
538
539 /*
540 ** Draw the names of all tags added to check-in rid. Only tags
541 ** that are directly applied to rid are named. Propagated tags
542
+3 -1
--- src/timeline.c
+++ src/timeline.c
@@ -952,11 +952,11 @@
952952
db_prepare(&q, "SELECT * FROM timeline ORDER BY timestamp DESC /*scan*/");
953953
@ <h2>%b(&desc)</h2>
954954
blob_reset(&desc);
955955
www_print_timeline(&q, tmFlags, 0);
956956
db_finalize(&q);
957
- style_footer_cmdref("timeline");
957
+ style_footer_cmdref("timeline",0);
958958
}
959959
960960
/*
961961
** The input query q selects various records. Print a human-readable
962962
** summary of those records.
@@ -1095,10 +1095,12 @@
10951095
** t = tickets only
10961096
** e = events only
10971097
**
10981098
** The information can also be used in the gui:
10991099
** * go to the <a href="timeline">timeline</a> page
1100
+** * or the "history" links on the dedicated details views(events,
1101
+** files, tickets, ..)
11001102
**
11011103
** See also: <a>descendants</a>
11021104
*/
11031105
void timeline_cmd(void){
11041106
Stmt q;
11051107
--- src/timeline.c
+++ src/timeline.c
@@ -952,11 +952,11 @@
952 db_prepare(&q, "SELECT * FROM timeline ORDER BY timestamp DESC /*scan*/");
953 @ <h2>%b(&desc)</h2>
954 blob_reset(&desc);
955 www_print_timeline(&q, tmFlags, 0);
956 db_finalize(&q);
957 style_footer_cmdref("timeline");
958 }
959
960 /*
961 ** The input query q selects various records. Print a human-readable
962 ** summary of those records.
@@ -1095,10 +1095,12 @@
1095 ** t = tickets only
1096 ** e = events only
1097 **
1098 ** The information can also be used in the gui:
1099 ** * go to the <a href="timeline">timeline</a> page
 
 
1100 **
1101 ** See also: <a>descendants</a>
1102 */
1103 void timeline_cmd(void){
1104 Stmt q;
1105
--- src/timeline.c
+++ src/timeline.c
@@ -952,11 +952,11 @@
952 db_prepare(&q, "SELECT * FROM timeline ORDER BY timestamp DESC /*scan*/");
953 @ <h2>%b(&desc)</h2>
954 blob_reset(&desc);
955 www_print_timeline(&q, tmFlags, 0);
956 db_finalize(&q);
957 style_footer_cmdref("timeline",0);
958 }
959
960 /*
961 ** The input query q selects various records. Print a human-readable
962 ** summary of those records.
@@ -1095,10 +1095,12 @@
1095 ** t = tickets only
1096 ** e = events only
1097 **
1098 ** The information can also be used in the gui:
1099 ** * go to the <a href="timeline">timeline</a> page
1100 ** * or the "history" links on the dedicated details views(events,
1101 ** files, tickets, ..)
1102 **
1103 ** See also: <a>descendants</a>
1104 */
1105 void timeline_cmd(void){
1106 Stmt q;
1107
+5 -5
--- src/tkt.c
+++ src/tkt.c
@@ -366,11 +366,11 @@
366366
@ </ul>
367367
}
368368
db_finalize(&q);
369369
}
370370
371
- style_footer_cmdref("info");
371
+ style_footer_cmdref("info",0);
372372
}
373373
374374
/*
375375
** TH command: append_field FIELD STRING
376376
**
@@ -528,11 +528,11 @@
528528
cgi_redirect(mprintf("%s/tktview/%s", g.zBaseURL, zNewUuid));
529529
return;
530530
}
531531
@ </form>
532532
if( g.thTrace ) Th_Trace("END_TKTVIEW<br />\n", -1);
533
- style_footer();
533
+ style_footer_cmdref("ticket","add");
534534
}
535535
536536
/*
537537
** WEBPAGE: tktedit
538538
** WEBPAGE: debug_tktedit
@@ -595,11 +595,11 @@
595595
cgi_redirect(mprintf("%s/tktview/%s", g.zBaseURL, zName));
596596
return;
597597
}
598598
@ </form>
599599
if( g.thTrace ) Th_Trace("BEGIN_TKTEDIT<br />\n", -1);
600
- style_footer();
600
+ style_footer_cmdref("ticket","change");
601601
}
602602
603603
/*
604604
** Check the ticket table schema in zSchema to see if it appears to
605605
** be well-formed. If everything is OK, return NULL. If something is
@@ -701,11 +701,11 @@
701701
}
702702
db_prepare(&q, zSQL);
703703
free(zSQL);
704704
www_print_timeline(&q, TIMELINE_ARTID, 0);
705705
db_finalize(&q);
706
- style_footer();
706
+ style_footer_cmdref("timeline",0);
707707
}
708708
709709
/*
710710
** WEBPAGE: tkthistory
711711
** URL: /tkthistory?name=TICKETUUID
@@ -788,11 +788,11 @@
788788
}
789789
manifest_clear(&m);
790790
}
791791
}
792792
db_finalize(&q);
793
- style_footer();
793
+ style_footer_cmdref("timeline",0);
794794
}
795795
796796
/*
797797
** Return TRUE if the given BLOB contains a newline character.
798798
*/
799799
--- src/tkt.c
+++ src/tkt.c
@@ -366,11 +366,11 @@
366 @ </ul>
367 }
368 db_finalize(&q);
369 }
370
371 style_footer_cmdref("info");
372 }
373
374 /*
375 ** TH command: append_field FIELD STRING
376 **
@@ -528,11 +528,11 @@
528 cgi_redirect(mprintf("%s/tktview/%s", g.zBaseURL, zNewUuid));
529 return;
530 }
531 @ </form>
532 if( g.thTrace ) Th_Trace("END_TKTVIEW<br />\n", -1);
533 style_footer();
534 }
535
536 /*
537 ** WEBPAGE: tktedit
538 ** WEBPAGE: debug_tktedit
@@ -595,11 +595,11 @@
595 cgi_redirect(mprintf("%s/tktview/%s", g.zBaseURL, zName));
596 return;
597 }
598 @ </form>
599 if( g.thTrace ) Th_Trace("BEGIN_TKTEDIT<br />\n", -1);
600 style_footer();
601 }
602
603 /*
604 ** Check the ticket table schema in zSchema to see if it appears to
605 ** be well-formed. If everything is OK, return NULL. If something is
@@ -701,11 +701,11 @@
701 }
702 db_prepare(&q, zSQL);
703 free(zSQL);
704 www_print_timeline(&q, TIMELINE_ARTID, 0);
705 db_finalize(&q);
706 style_footer();
707 }
708
709 /*
710 ** WEBPAGE: tkthistory
711 ** URL: /tkthistory?name=TICKETUUID
@@ -788,11 +788,11 @@
788 }
789 manifest_clear(&m);
790 }
791 }
792 db_finalize(&q);
793 style_footer();
794 }
795
796 /*
797 ** Return TRUE if the given BLOB contains a newline character.
798 */
799
--- src/tkt.c
+++ src/tkt.c
@@ -366,11 +366,11 @@
366 @ </ul>
367 }
368 db_finalize(&q);
369 }
370
371 style_footer_cmdref("info",0);
372 }
373
374 /*
375 ** TH command: append_field FIELD STRING
376 **
@@ -528,11 +528,11 @@
528 cgi_redirect(mprintf("%s/tktview/%s", g.zBaseURL, zNewUuid));
529 return;
530 }
531 @ </form>
532 if( g.thTrace ) Th_Trace("END_TKTVIEW<br />\n", -1);
533 style_footer_cmdref("ticket","add");
534 }
535
536 /*
537 ** WEBPAGE: tktedit
538 ** WEBPAGE: debug_tktedit
@@ -595,11 +595,11 @@
595 cgi_redirect(mprintf("%s/tktview/%s", g.zBaseURL, zName));
596 return;
597 }
598 @ </form>
599 if( g.thTrace ) Th_Trace("BEGIN_TKTEDIT<br />\n", -1);
600 style_footer_cmdref("ticket","change");
601 }
602
603 /*
604 ** Check the ticket table schema in zSchema to see if it appears to
605 ** be well-formed. If everything is OK, return NULL. If something is
@@ -701,11 +701,11 @@
701 }
702 db_prepare(&q, zSQL);
703 free(zSQL);
704 www_print_timeline(&q, TIMELINE_ARTID, 0);
705 db_finalize(&q);
706 style_footer_cmdref("timeline",0);
707 }
708
709 /*
710 ** WEBPAGE: tkthistory
711 ** URL: /tkthistory?name=TICKETUUID
@@ -788,11 +788,11 @@
788 }
789 manifest_clear(&m);
790 }
791 }
792 db_finalize(&q);
793 style_footer_cmdref("timeline",0);
794 }
795
796 /*
797 ** Return TRUE if the given BLOB contains a newline character.
798 */
799
+6 -2
--- src/wiki.c
+++ src/wiki.c
@@ -164,11 +164,11 @@
164164
@ <li> <form method="get" action="%s(g.zBaseURL)/wfind"><div>
165165
@ Search wiki titles: <input type="text" name="title"/>
166166
@ &nbsp; <input type="submit" /></div></form>
167167
@ </li>
168168
@ </ul>
169
- style_footer_cmdref("wiki");
169
+ style_footer_cmdref("wiki",0);
170170
return;
171171
}
172172
if( check_name(zPageName) ) return;
173173
isSandbox = is_sandbox(zPageName);
174174
if( isSandbox ){
@@ -252,10 +252,14 @@
252252
db_finalize(&q);
253253
254254
if( !isSandbox ){
255255
manifest_clear(&m);
256256
}
257
+ /* don'tshow the help cross reference, because we are rendering
258
+ ** the wiki conten!
259
+ ** style_footer_cmdref("wiki","export");
260
+ */
257261
style_footer();
258262
}
259263
260264
/*
261265
** WEBPAGE: wikiedit
@@ -693,11 +697,11 @@
693697
@ <li><a href="%s(g.zTop)/wiki?name=%T(zName)"><s>%h(zName)</s></a></li>
694698
}
695699
}
696700
db_finalize(&q);
697701
@ </ul>
698
- style_footer_cmdref("wiki");
702
+ style_footer_cmdref("wiki","list");
699703
}
700704
701705
/*
702706
** WEBPAGE: wfind
703707
**
704708
--- src/wiki.c
+++ src/wiki.c
@@ -164,11 +164,11 @@
164 @ <li> <form method="get" action="%s(g.zBaseURL)/wfind"><div>
165 @ Search wiki titles: <input type="text" name="title"/>
166 @ &nbsp; <input type="submit" /></div></form>
167 @ </li>
168 @ </ul>
169 style_footer_cmdref("wiki");
170 return;
171 }
172 if( check_name(zPageName) ) return;
173 isSandbox = is_sandbox(zPageName);
174 if( isSandbox ){
@@ -252,10 +252,14 @@
252 db_finalize(&q);
253
254 if( !isSandbox ){
255 manifest_clear(&m);
256 }
 
 
 
 
257 style_footer();
258 }
259
260 /*
261 ** WEBPAGE: wikiedit
@@ -693,11 +697,11 @@
693 @ <li><a href="%s(g.zTop)/wiki?name=%T(zName)"><s>%h(zName)</s></a></li>
694 }
695 }
696 db_finalize(&q);
697 @ </ul>
698 style_footer_cmdref("wiki");
699 }
700
701 /*
702 ** WEBPAGE: wfind
703 **
704
--- src/wiki.c
+++ src/wiki.c
@@ -164,11 +164,11 @@
164 @ <li> <form method="get" action="%s(g.zBaseURL)/wfind"><div>
165 @ Search wiki titles: <input type="text" name="title"/>
166 @ &nbsp; <input type="submit" /></div></form>
167 @ </li>
168 @ </ul>
169 style_footer_cmdref("wiki",0);
170 return;
171 }
172 if( check_name(zPageName) ) return;
173 isSandbox = is_sandbox(zPageName);
174 if( isSandbox ){
@@ -252,10 +252,14 @@
252 db_finalize(&q);
253
254 if( !isSandbox ){
255 manifest_clear(&m);
256 }
257 /* don'tshow the help cross reference, because we are rendering
258 ** the wiki conten!
259 ** style_footer_cmdref("wiki","export");
260 */
261 style_footer();
262 }
263
264 /*
265 ** WEBPAGE: wikiedit
@@ -693,11 +697,11 @@
697 @ <li><a href="%s(g.zTop)/wiki?name=%T(zName)"><s>%h(zName)</s></a></li>
698 }
699 }
700 db_finalize(&q);
701 @ </ul>
702 style_footer_cmdref("wiki","list");
703 }
704
705 /*
706 ** WEBPAGE: wfind
707 **
708

Keyboard Shortcuts

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