Fossil SCM

corrected some & chars in hyperlinks and added missing quotes in attribute values

wolfgang 2010-09-12 12:49 wolfgangFormat2CSS
Commit 214d2faf6d4627a3c14bebf0c609271d588e5d83
+2 -2
--- src/attach.c
+++ src/attach.c
@@ -75,13 +75,13 @@
7575
zFilename = &zFilename[i+1];
7676
i = -1;
7777
}
7878
}
7979
if( strlen(zTarget)==UUID_SIZE && validate16(zTarget,UUID_SIZE) ){
80
- zUrlTail = mprintf("tkt=%s&file=%t", zTarget, zFilename);
80
+ zUrlTail = mprintf("tkt=%s&file=%t", zTarget, zFilename);
8181
}else{
82
- zUrlTail = mprintf("page=%t&file=%t", zTarget, zFilename);
82
+ zUrlTail = mprintf("page=%t&file=%t", zTarget, zFilename);
8383
}
8484
@
8585
@ <p><a href="/attachview?%s(zUrlTail)">%h(zFilename)</a>
8686
@ [<a href="/attachdownload/%t(zFilename)?%s(zUrlTail)">download</a>]<br />
8787
if( zComment ) while( isspace(zComment[0]) ) zComment++;
8888
--- src/attach.c
+++ src/attach.c
@@ -75,13 +75,13 @@
75 zFilename = &zFilename[i+1];
76 i = -1;
77 }
78 }
79 if( strlen(zTarget)==UUID_SIZE && validate16(zTarget,UUID_SIZE) ){
80 zUrlTail = mprintf("tkt=%s&file=%t", zTarget, zFilename);
81 }else{
82 zUrlTail = mprintf("page=%t&file=%t", zTarget, zFilename);
83 }
84 @
85 @ <p><a href="/attachview?%s(zUrlTail)">%h(zFilename)</a>
86 @ [<a href="/attachdownload/%t(zFilename)?%s(zUrlTail)">download</a>]<br />
87 if( zComment ) while( isspace(zComment[0]) ) zComment++;
88
--- src/attach.c
+++ src/attach.c
@@ -75,13 +75,13 @@
75 zFilename = &zFilename[i+1];
76 i = -1;
77 }
78 }
79 if( strlen(zTarget)==UUID_SIZE && validate16(zTarget,UUID_SIZE) ){
80 zUrlTail = mprintf("tkt=%s&amp;file=%t", zTarget, zFilename);
81 }else{
82 zUrlTail = mprintf("page=%t&amp;file=%t", zTarget, zFilename);
83 }
84 @
85 @ <p><a href="/attachview?%s(zUrlTail)">%h(zFilename)</a>
86 @ [<a href="/attachdownload/%t(zFilename)?%s(zUrlTail)">download</a>]<br />
87 if( zComment ) while( isspace(zComment[0]) ) zComment++;
88
+2 -2
--- src/browse.c
+++ src/browse.c
@@ -157,13 +157,13 @@
157157
@ <h2>The union of all files from all check-ins
158158
@ %s(blob_str(&dirname))</h2>
159159
zSubdirLink = mprintf("%s/dir?name=%T", g.zBaseURL, zPrefix);
160160
if( zD ){
161161
style_submenu_element("Top", "Top", "%s/dir", g.zBaseURL);
162
- style_submenu_element("Tip", "Tip", "%s/dir?name=%t&ci=tip",
162
+ style_submenu_element("Tip", "Tip", "%s/dir?name=%t&amp;ci=tip",
163163
g.zBaseURL, zD);
164
- style_submenu_element("Trunk", "Trunk", "%s/dir?name=%t&ci=trunk",
164
+ style_submenu_element("Trunk", "Trunk", "%s/dir?name=%t&amp;ci=trunk",
165165
g.zBaseURL,zD);
166166
}else{
167167
style_submenu_element("Tip", "Tip", "%s/dir?ci=tip", g.zBaseURL);
168168
style_submenu_element("Trunk", "Trunk", "%s/dir?ci=trunk", g.zBaseURL);
169169
}
170170
--- src/browse.c
+++ src/browse.c
@@ -157,13 +157,13 @@
157 @ <h2>The union of all files from all check-ins
158 @ %s(blob_str(&dirname))</h2>
159 zSubdirLink = mprintf("%s/dir?name=%T", g.zBaseURL, zPrefix);
160 if( zD ){
161 style_submenu_element("Top", "Top", "%s/dir", g.zBaseURL);
162 style_submenu_element("Tip", "Tip", "%s/dir?name=%t&ci=tip",
163 g.zBaseURL, zD);
164 style_submenu_element("Trunk", "Trunk", "%s/dir?name=%t&ci=trunk",
165 g.zBaseURL,zD);
166 }else{
167 style_submenu_element("Tip", "Tip", "%s/dir?ci=tip", g.zBaseURL);
168 style_submenu_element("Trunk", "Trunk", "%s/dir?ci=trunk", g.zBaseURL);
169 }
170
--- src/browse.c
+++ src/browse.c
@@ -157,13 +157,13 @@
157 @ <h2>The union of all files from all check-ins
158 @ %s(blob_str(&dirname))</h2>
159 zSubdirLink = mprintf("%s/dir?name=%T", g.zBaseURL, zPrefix);
160 if( zD ){
161 style_submenu_element("Top", "Top", "%s/dir", g.zBaseURL);
162 style_submenu_element("Tip", "Tip", "%s/dir?name=%t&amp;ci=tip",
163 g.zBaseURL, zD);
164 style_submenu_element("Trunk", "Trunk", "%s/dir?name=%t&amp;ci=trunk",
165 g.zBaseURL,zD);
166 }else{
167 style_submenu_element("Tip", "Tip", "%s/dir?ci=tip", g.zBaseURL);
168 style_submenu_element("Trunk", "Trunk", "%s/dir?ci=trunk", g.zBaseURL);
169 }
170
+9 -9
--- src/info.c
+++ src/info.c
@@ -618,11 +618,11 @@
618618
}
619619
620620
621621
/*
622622
** WEBPAGE: vdiff
623
-** URL: /vdiff?from=UUID&to=UUID&detail=BOOLEAN
623
+** URL: /vdiff?from=UUID&amp;to=UUID&amp;detail=BOOLEAN
624624
**
625625
** Show all differences between two checkins.
626626
*/
627627
void vdiff_page(void){
628628
int ridFrom, ridTo;
@@ -996,11 +996,11 @@
996996
if( !g.okRead ){ login_needed(); return; }
997997
if( rid==0 ) fossil_redirect_home();
998998
if( g.okAdmin ){
999999
const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
10001000
if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1001
- style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1",
1001
+ style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&amp;sub=1",
10021002
g.zTop, zUuid);
10031003
}else{
10041004
style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
10051005
g.zTop, zUuid);
10061006
}
@@ -1078,11 +1078,11 @@
10781078
if( !g.okRead ){ login_needed(); return; }
10791079
if( rid==0 ) fossil_redirect_home();
10801080
if( g.okAdmin ){
10811081
const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
10821082
if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1083
- style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1",
1083
+ style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&amp;sub=1",
10841084
g.zTop, zUuid);
10851085
}else{
10861086
style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
10871087
g.zTop, zUuid);
10881088
}
@@ -1102,20 +1102,20 @@
11021102
style_submenu_element("Html", "Html",
11031103
"%s/artifact?name=%s", g.zTop, zUuid);
11041104
}else{
11051105
renderAsHtml = 1;
11061106
style_submenu_element("Text", "Text",
1107
- "%s/artifact?name=%s&txt=1", g.zTop, zUuid);
1107
+ "%s/artifact?name=%s&amp;txt=1", g.zTop, zUuid);
11081108
}
11091109
}else if( strcmp(zMime, "application/x-fossil-wiki")==0 ){
11101110
if( P("txt") ){
11111111
style_submenu_element("Wiki", "Wiki",
11121112
"%s/artifact?name=%s", g.zTop, zUuid);
11131113
}else{
11141114
renderAsWiki = 1;
11151115
style_submenu_element("Text", "Text",
1116
- "%s/artifact?name=%s&txt=1", g.zTop, zUuid);
1116
+ "%s/artifact?name=%s&amp;txt=1", g.zTop, zUuid);
11171117
}
11181118
}
11191119
}
11201120
@ </p></blockquote>
11211121
@ <hr />
@@ -1133,11 +1133,11 @@
11331133
@ <pre>
11341134
@ %h(blob_str(&content))
11351135
@ </pre>
11361136
style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid);
11371137
}else if( strncmp(zMime, "image/", 6)==0 ){
1138
- @ <img src="%s(g.zBaseURL)/raw?name=%s(zUuid)&m=%s(zMime)"></img>
1138
+ @ <img src="%s(g.zBaseURL)/raw?name=%s(zUuid)&amp;m=%s(zMime)"></img>
11391139
style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid);
11401140
}else{
11411141
@ <pre>
11421142
hexdump(&content);
11431143
@ </pre>
@@ -1166,11 +1166,11 @@
11661166
rid = name_to_rid_www("name");
11671167
if( rid==0 ){ fossil_redirect_home(); }
11681168
zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
11691169
if( g.okAdmin ){
11701170
if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1171
- style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1",
1171
+ style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&amp;sub=1",
11721172
g.zTop, zUuid);
11731173
}else{
11741174
style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
11751175
g.zTop, zUuid);
11761176
}
@@ -1444,11 +1444,11 @@
14441444
int nTag = 0;
14451445
@ <b>Preview:</b>
14461446
@ <blockquote>
14471447
@ <table border=0>
14481448
if( zNewColor && zNewColor[0] ){
1449
- @ <tr><td bgcolor="%h(zNewColor)">
1449
+ @ <tr><td style="background-color: %h(zNewColor);">
14501450
}else{
14511451
@ <tr><td>
14521452
}
14531453
wiki_convert(&comment, 0, WIKI_INLINE);
14541454
blob_zero(&suffix);
@@ -1507,11 +1507,11 @@
15071507
}
15081508
@ Propagate color to descendants</input></td></tr>
15091509
@ <tr>
15101510
for(i=0; i<nColor; i++){
15111511
if( aColor[i].zColor[0] ){
1512
- @ <td bgcolor="%h(aColor[i].zColor)">
1512
+ @ <td style="background-color: %h(aColor[i].zColor);">
15131513
}else{
15141514
@ <td>
15151515
}
15161516
if( strcmp(zNewColor, aColor[i].zColor)==0 ){
15171517
@ <input type="radio" name="clr" value="%h(aColor[i].zColor)" checked>
15181518
--- src/info.c
+++ src/info.c
@@ -618,11 +618,11 @@
618 }
619
620
621 /*
622 ** WEBPAGE: vdiff
623 ** URL: /vdiff?from=UUID&to=UUID&detail=BOOLEAN
624 **
625 ** Show all differences between two checkins.
626 */
627 void vdiff_page(void){
628 int ridFrom, ridTo;
@@ -996,11 +996,11 @@
996 if( !g.okRead ){ login_needed(); return; }
997 if( rid==0 ) fossil_redirect_home();
998 if( g.okAdmin ){
999 const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
1000 if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1001 style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1",
1002 g.zTop, zUuid);
1003 }else{
1004 style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
1005 g.zTop, zUuid);
1006 }
@@ -1078,11 +1078,11 @@
1078 if( !g.okRead ){ login_needed(); return; }
1079 if( rid==0 ) fossil_redirect_home();
1080 if( g.okAdmin ){
1081 const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
1082 if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1083 style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1",
1084 g.zTop, zUuid);
1085 }else{
1086 style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
1087 g.zTop, zUuid);
1088 }
@@ -1102,20 +1102,20 @@
1102 style_submenu_element("Html", "Html",
1103 "%s/artifact?name=%s", g.zTop, zUuid);
1104 }else{
1105 renderAsHtml = 1;
1106 style_submenu_element("Text", "Text",
1107 "%s/artifact?name=%s&txt=1", g.zTop, zUuid);
1108 }
1109 }else if( strcmp(zMime, "application/x-fossil-wiki")==0 ){
1110 if( P("txt") ){
1111 style_submenu_element("Wiki", "Wiki",
1112 "%s/artifact?name=%s", g.zTop, zUuid);
1113 }else{
1114 renderAsWiki = 1;
1115 style_submenu_element("Text", "Text",
1116 "%s/artifact?name=%s&txt=1", g.zTop, zUuid);
1117 }
1118 }
1119 }
1120 @ </p></blockquote>
1121 @ <hr />
@@ -1133,11 +1133,11 @@
1133 @ <pre>
1134 @ %h(blob_str(&content))
1135 @ </pre>
1136 style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid);
1137 }else if( strncmp(zMime, "image/", 6)==0 ){
1138 @ <img src="%s(g.zBaseURL)/raw?name=%s(zUuid)&m=%s(zMime)"></img>
1139 style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid);
1140 }else{
1141 @ <pre>
1142 hexdump(&content);
1143 @ </pre>
@@ -1166,11 +1166,11 @@
1166 rid = name_to_rid_www("name");
1167 if( rid==0 ){ fossil_redirect_home(); }
1168 zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
1169 if( g.okAdmin ){
1170 if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1171 style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1",
1172 g.zTop, zUuid);
1173 }else{
1174 style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
1175 g.zTop, zUuid);
1176 }
@@ -1444,11 +1444,11 @@
1444 int nTag = 0;
1445 @ <b>Preview:</b>
1446 @ <blockquote>
1447 @ <table border=0>
1448 if( zNewColor && zNewColor[0] ){
1449 @ <tr><td bgcolor="%h(zNewColor)">
1450 }else{
1451 @ <tr><td>
1452 }
1453 wiki_convert(&comment, 0, WIKI_INLINE);
1454 blob_zero(&suffix);
@@ -1507,11 +1507,11 @@
1507 }
1508 @ Propagate color to descendants</input></td></tr>
1509 @ <tr>
1510 for(i=0; i<nColor; i++){
1511 if( aColor[i].zColor[0] ){
1512 @ <td bgcolor="%h(aColor[i].zColor)">
1513 }else{
1514 @ <td>
1515 }
1516 if( strcmp(zNewColor, aColor[i].zColor)==0 ){
1517 @ <input type="radio" name="clr" value="%h(aColor[i].zColor)" checked>
1518
--- src/info.c
+++ src/info.c
@@ -618,11 +618,11 @@
618 }
619
620
621 /*
622 ** WEBPAGE: vdiff
623 ** URL: /vdiff?from=UUID&amp;to=UUID&amp;detail=BOOLEAN
624 **
625 ** Show all differences between two checkins.
626 */
627 void vdiff_page(void){
628 int ridFrom, ridTo;
@@ -996,11 +996,11 @@
996 if( !g.okRead ){ login_needed(); return; }
997 if( rid==0 ) fossil_redirect_home();
998 if( g.okAdmin ){
999 const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
1000 if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1001 style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&amp;sub=1",
1002 g.zTop, zUuid);
1003 }else{
1004 style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
1005 g.zTop, zUuid);
1006 }
@@ -1078,11 +1078,11 @@
1078 if( !g.okRead ){ login_needed(); return; }
1079 if( rid==0 ) fossil_redirect_home();
1080 if( g.okAdmin ){
1081 const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
1082 if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1083 style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&amp;sub=1",
1084 g.zTop, zUuid);
1085 }else{
1086 style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
1087 g.zTop, zUuid);
1088 }
@@ -1102,20 +1102,20 @@
1102 style_submenu_element("Html", "Html",
1103 "%s/artifact?name=%s", g.zTop, zUuid);
1104 }else{
1105 renderAsHtml = 1;
1106 style_submenu_element("Text", "Text",
1107 "%s/artifact?name=%s&amp;txt=1", g.zTop, zUuid);
1108 }
1109 }else if( strcmp(zMime, "application/x-fossil-wiki")==0 ){
1110 if( P("txt") ){
1111 style_submenu_element("Wiki", "Wiki",
1112 "%s/artifact?name=%s", g.zTop, zUuid);
1113 }else{
1114 renderAsWiki = 1;
1115 style_submenu_element("Text", "Text",
1116 "%s/artifact?name=%s&amp;txt=1", g.zTop, zUuid);
1117 }
1118 }
1119 }
1120 @ </p></blockquote>
1121 @ <hr />
@@ -1133,11 +1133,11 @@
1133 @ <pre>
1134 @ %h(blob_str(&content))
1135 @ </pre>
1136 style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid);
1137 }else if( strncmp(zMime, "image/", 6)==0 ){
1138 @ <img src="%s(g.zBaseURL)/raw?name=%s(zUuid)&amp;m=%s(zMime)"></img>
1139 style_submenu_element("Hex","Hex", "%s/hexdump?name=%s", g.zTop, zUuid);
1140 }else{
1141 @ <pre>
1142 hexdump(&content);
1143 @ </pre>
@@ -1166,11 +1166,11 @@
1166 rid = name_to_rid_www("name");
1167 if( rid==0 ){ fossil_redirect_home(); }
1168 zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
1169 if( g.okAdmin ){
1170 if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
1171 style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&amp;sub=1",
1172 g.zTop, zUuid);
1173 }else{
1174 style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
1175 g.zTop, zUuid);
1176 }
@@ -1444,11 +1444,11 @@
1444 int nTag = 0;
1445 @ <b>Preview:</b>
1446 @ <blockquote>
1447 @ <table border=0>
1448 if( zNewColor && zNewColor[0] ){
1449 @ <tr><td style="background-color: %h(zNewColor);">
1450 }else{
1451 @ <tr><td>
1452 }
1453 wiki_convert(&comment, 0, WIKI_INLINE);
1454 blob_zero(&suffix);
@@ -1507,11 +1507,11 @@
1507 }
1508 @ Propagate color to descendants</input></td></tr>
1509 @ <tr>
1510 for(i=0; i<nColor; i++){
1511 if( aColor[i].zColor[0] ){
1512 @ <td style="background-color: %h(aColor[i].zColor);">
1513 }else{
1514 @ <td>
1515 }
1516 if( strcmp(zNewColor, aColor[i].zColor)==0 ){
1517 @ <input type="radio" name="clr" value="%h(aColor[i].zColor)" checked>
1518
+5 -5
--- src/report.c
+++ src/report.c
@@ -393,11 +393,11 @@
393393
}
394394
}
395395
if( zOwner==0 ) zOwner = g.zLogin;
396396
style_submenu_element("Cancel", "Cancel", "reportlist");
397397
if( rn>0 ){
398
- style_submenu_element("Delete", "Delete", "rptedit?rn=%d&del1=1", rn);
398
+ style_submenu_element("Delete", "Delete", "rptedit?rn=%d&amp;del1=1", rn);
399399
}
400400
style_header(rn>0 ? "Edit Report Format":"Create New Report Format");
401401
if( zErr ){
402402
@ <blockquote><font color="#ff0000"><b>%h(zErr)</b></font></blockquote>
403403
}
@@ -829,14 +829,14 @@
829829
while( isspace(*zSafeKey) ) zSafeKey++;
830830
for(i=0; zSafeKey[i] && !isspace(zSafeKey[i]); i++){}
831831
for(j=i; isspace(zSafeKey[j]); j++){}
832832
for(k=j; zSafeKey[k] && zSafeKey[k]!='\n' && zSafeKey[k]!='\r'; k++){}
833833
if( !horiz ){
834
- cgi_printf("<tr bgcolor=\"%.*s\"><td>%.*s</td></tr>\n",
834
+ cgi_printf("<tr style=\"background-color: %.*s;\"><td>%.*s</td></tr>\n",
835835
i, zSafeKey, k-j, &zSafeKey[j]);
836836
}else{
837
- cgi_printf("<td bgcolor=\"%.*s\">%.*s</td>\n",
837
+ cgi_printf("<td style=\"background-color: %.*s;\">%.*s</td>\n",
838838
i, zSafeKey, k-j, &zSafeKey[j]);
839839
}
840840
zSafeKey += k;
841841
}
842842
free(zToFree);
@@ -921,12 +921,12 @@
921921
style_submenu_element("New Ticket", "Create a new ticket",
922922
"%s/tktnew", g.zTop);
923923
}
924924
style_header(zTitle);
925925
output_color_key(zClrKey, 1,
926
- "border=0 cellpadding=3 cellspacing=0 class=\"report\"");
927
- @ <table border=1 cellpadding=2 cellspacing=0 class="report">
926
+ "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"report\"");
927
+ @ <table border="1" cellpadding="2" cellspacing="0" class="report">
928928
sState.rn = rn;
929929
sState.nCount = 0;
930930
sqlite3_set_authorizer(g.db, report_query_authorizer, (void*)&zErr1);
931931
sqlite3_exec(g.db, zSql, generate_html, &sState, &zErr2);
932932
sqlite3_set_authorizer(g.db, 0, 0);
933933
--- src/report.c
+++ src/report.c
@@ -393,11 +393,11 @@
393 }
394 }
395 if( zOwner==0 ) zOwner = g.zLogin;
396 style_submenu_element("Cancel", "Cancel", "reportlist");
397 if( rn>0 ){
398 style_submenu_element("Delete", "Delete", "rptedit?rn=%d&del1=1", rn);
399 }
400 style_header(rn>0 ? "Edit Report Format":"Create New Report Format");
401 if( zErr ){
402 @ <blockquote><font color="#ff0000"><b>%h(zErr)</b></font></blockquote>
403 }
@@ -829,14 +829,14 @@
829 while( isspace(*zSafeKey) ) zSafeKey++;
830 for(i=0; zSafeKey[i] && !isspace(zSafeKey[i]); i++){}
831 for(j=i; isspace(zSafeKey[j]); j++){}
832 for(k=j; zSafeKey[k] && zSafeKey[k]!='\n' && zSafeKey[k]!='\r'; k++){}
833 if( !horiz ){
834 cgi_printf("<tr bgcolor=\"%.*s\"><td>%.*s</td></tr>\n",
835 i, zSafeKey, k-j, &zSafeKey[j]);
836 }else{
837 cgi_printf("<td bgcolor=\"%.*s\">%.*s</td>\n",
838 i, zSafeKey, k-j, &zSafeKey[j]);
839 }
840 zSafeKey += k;
841 }
842 free(zToFree);
@@ -921,12 +921,12 @@
921 style_submenu_element("New Ticket", "Create a new ticket",
922 "%s/tktnew", g.zTop);
923 }
924 style_header(zTitle);
925 output_color_key(zClrKey, 1,
926 "border=0 cellpadding=3 cellspacing=0 class=\"report\"");
927 @ <table border=1 cellpadding=2 cellspacing=0 class="report">
928 sState.rn = rn;
929 sState.nCount = 0;
930 sqlite3_set_authorizer(g.db, report_query_authorizer, (void*)&zErr1);
931 sqlite3_exec(g.db, zSql, generate_html, &sState, &zErr2);
932 sqlite3_set_authorizer(g.db, 0, 0);
933
--- src/report.c
+++ src/report.c
@@ -393,11 +393,11 @@
393 }
394 }
395 if( zOwner==0 ) zOwner = g.zLogin;
396 style_submenu_element("Cancel", "Cancel", "reportlist");
397 if( rn>0 ){
398 style_submenu_element("Delete", "Delete", "rptedit?rn=%d&amp;del1=1", rn);
399 }
400 style_header(rn>0 ? "Edit Report Format":"Create New Report Format");
401 if( zErr ){
402 @ <blockquote><font color="#ff0000"><b>%h(zErr)</b></font></blockquote>
403 }
@@ -829,14 +829,14 @@
829 while( isspace(*zSafeKey) ) zSafeKey++;
830 for(i=0; zSafeKey[i] && !isspace(zSafeKey[i]); i++){}
831 for(j=i; isspace(zSafeKey[j]); j++){}
832 for(k=j; zSafeKey[k] && zSafeKey[k]!='\n' && zSafeKey[k]!='\r'; k++){}
833 if( !horiz ){
834 cgi_printf("<tr style=\"background-color: %.*s;\"><td>%.*s</td></tr>\n",
835 i, zSafeKey, k-j, &zSafeKey[j]);
836 }else{
837 cgi_printf("<td style=\"background-color: %.*s;\">%.*s</td>\n",
838 i, zSafeKey, k-j, &zSafeKey[j]);
839 }
840 zSafeKey += k;
841 }
842 free(zToFree);
@@ -921,12 +921,12 @@
921 style_submenu_element("New Ticket", "Create a new ticket",
922 "%s/tktnew", g.zTop);
923 }
924 style_header(zTitle);
925 output_color_key(zClrKey, 1,
926 "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"report\"");
927 @ <table border="1" cellpadding="2" cellspacing="0" class="report">
928 sState.rn = rn;
929 sState.nCount = 0;
930 sqlite3_set_authorizer(g.db, report_query_authorizer, (void*)&zErr1);
931 sqlite3_exec(g.db, zSql, generate_html, &sState, &zErr2);
932 sqlite3_set_authorizer(g.db, 0, 0);
933
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -83,11 +83,11 @@
8383
void hyperlink_to_diff(const char *zV1, const char *zV2){
8484
if( g.okHistory ){
8585
if( zV2==0 ){
8686
@ <a href="%s(g.zBaseURL)/diff?v2=%s(zV1)">[diff]</a>
8787
}else{
88
- @ <a href="%s(g.zBaseURL)/diff?v1=%s(zV1)&v2=%s(zV2)">[diff]</a>
88
+ @ <a href="%s(g.zBaseURL)/diff?v1=%s(zV1)&amp;v2=%s(zV2)">[diff]</a>
8989
}
9090
}
9191
}
9292
9393
/*
9494
--- src/timeline.c
+++ src/timeline.c
@@ -83,11 +83,11 @@
83 void hyperlink_to_diff(const char *zV1, const char *zV2){
84 if( g.okHistory ){
85 if( zV2==0 ){
86 @ <a href="%s(g.zBaseURL)/diff?v2=%s(zV1)">[diff]</a>
87 }else{
88 @ <a href="%s(g.zBaseURL)/diff?v1=%s(zV1)&v2=%s(zV2)">[diff]</a>
89 }
90 }
91 }
92
93 /*
94
--- src/timeline.c
+++ src/timeline.c
@@ -83,11 +83,11 @@
83 void hyperlink_to_diff(const char *zV1, const char *zV2){
84 if( g.okHistory ){
85 if( zV2==0 ){
86 @ <a href="%s(g.zBaseURL)/diff?v2=%s(zV1)">[diff]</a>
87 }else{
88 @ <a href="%s(g.zBaseURL)/diff?v1=%s(zV1)&amp;v2=%s(zV2)">[diff]</a>
89 }
90 }
91 }
92
93 /*
94
+3 -3
--- src/tkt.c
+++ src/tkt.c
@@ -313,11 +313,11 @@
313313
style_submenu_element("New Ticket", "Create a new ticket",
314314
"%s/tktnew", g.zTop);
315315
}
316316
if( g.okApndTkt && g.okAttach ){
317317
style_submenu_element("Attach", "Add An Attachment",
318
- "%s/attachadd?tkt=%T&from=%s/tktview/%t",
318
+ "%s/attachadd?tkt=%T&amp;from=%s/tktview/%t",
319319
g.zTop, zUuid, g.zTop, zUuid);
320320
}
321321
style_header("View Ticket");
322322
if( g.thTrace ) Th_Trace("BEGIN_TKTVIEW<br />\n", -1);
323323
ticket_init();
@@ -347,19 +347,19 @@
347347
@ <hr /><h2>Attachments:</h2>
348348
@ <ul>
349349
}
350350
cnt++;
351351
if( g.okRead && g.okHistory ){
352
- @ <li><a href="%s(g.zTop)/attachview?tkt=%s(zFullName)&file=%t(zFile)">
352
+ @ <li><a href="%s(g.zTop)/attachview?tkt=%s(zFullName)&amp;file=%t(zFile)">
353353
@ %h(zFile)</a>
354354
}else{
355355
@ %h(zFile)
356356
}
357357
@ added by %h(zUser) on
358358
hyperlink_to_date(zDate, ".");
359359
if( g.okWrTkt && g.okAttach ){
360
- @ [<a href="%s(g.zTop)/attachdelete?tkt=%s(zFullName)&file=%t(zFile)&from=%s(g.zTop)/tktview%%3fname=%s(zFullName)">delete</a>]
360
+ @ [<a href="%s(g.zTop)/attachdelete?tkt=%s(zFullName)&amp;file=%t(zFile)&amp;from=%s(g.zTop)/tktview%%3fname=%s(zFullName)">delete</a>]
361361
}
362362
}
363363
if( cnt ){
364364
@ </ul>
365365
}
366366
--- src/tkt.c
+++ src/tkt.c
@@ -313,11 +313,11 @@
313 style_submenu_element("New Ticket", "Create a new ticket",
314 "%s/tktnew", g.zTop);
315 }
316 if( g.okApndTkt && g.okAttach ){
317 style_submenu_element("Attach", "Add An Attachment",
318 "%s/attachadd?tkt=%T&from=%s/tktview/%t",
319 g.zTop, zUuid, g.zTop, zUuid);
320 }
321 style_header("View Ticket");
322 if( g.thTrace ) Th_Trace("BEGIN_TKTVIEW<br />\n", -1);
323 ticket_init();
@@ -347,19 +347,19 @@
347 @ <hr /><h2>Attachments:</h2>
348 @ <ul>
349 }
350 cnt++;
351 if( g.okRead && g.okHistory ){
352 @ <li><a href="%s(g.zTop)/attachview?tkt=%s(zFullName)&file=%t(zFile)">
353 @ %h(zFile)</a>
354 }else{
355 @ %h(zFile)
356 }
357 @ added by %h(zUser) on
358 hyperlink_to_date(zDate, ".");
359 if( g.okWrTkt && g.okAttach ){
360 @ [<a href="%s(g.zTop)/attachdelete?tkt=%s(zFullName)&file=%t(zFile)&from=%s(g.zTop)/tktview%%3fname=%s(zFullName)">delete</a>]
361 }
362 }
363 if( cnt ){
364 @ </ul>
365 }
366
--- src/tkt.c
+++ src/tkt.c
@@ -313,11 +313,11 @@
313 style_submenu_element("New Ticket", "Create a new ticket",
314 "%s/tktnew", g.zTop);
315 }
316 if( g.okApndTkt && g.okAttach ){
317 style_submenu_element("Attach", "Add An Attachment",
318 "%s/attachadd?tkt=%T&amp;from=%s/tktview/%t",
319 g.zTop, zUuid, g.zTop, zUuid);
320 }
321 style_header("View Ticket");
322 if( g.thTrace ) Th_Trace("BEGIN_TKTVIEW<br />\n", -1);
323 ticket_init();
@@ -347,19 +347,19 @@
347 @ <hr /><h2>Attachments:</h2>
348 @ <ul>
349 }
350 cnt++;
351 if( g.okRead && g.okHistory ){
352 @ <li><a href="%s(g.zTop)/attachview?tkt=%s(zFullName)&amp;file=%t(zFile)">
353 @ %h(zFile)</a>
354 }else{
355 @ %h(zFile)
356 }
357 @ added by %h(zUser) on
358 hyperlink_to_date(zDate, ".");
359 if( g.okWrTkt && g.okAttach ){
360 @ [<a href="%s(g.zTop)/attachdelete?tkt=%s(zFullName)&amp;file=%t(zFile)&amp;from=%s(g.zTop)/tktview%%3fname=%s(zFullName)">delete</a>]
361 }
362 }
363 if( cnt ){
364 @ </ul>
365 }
366
+1 -1
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -353,11 +353,11 @@
353353
);
354354
}
355355
356356
static const char zDefaultView[] =
357357
@ <table cellpadding="5">
358
-@ <tr><td align="right">Ticket&nbsp;UUID:</td><td bgcolor="#d0d0d0" colspan="3">
358
+@ <tr><td align="right">Ticket&nbsp;UUID:</td><td style="background-color: #d0d0d0;" colspan="3">
359359
@ $<tkt_uuid>
360360
@ </td></tr>
361361
@ <tr><td align="right">Title:</td>
362362
@ <td bgcolor="#d0d0d0" colspan="3" valign="top">
363363
@ <th1>wiki $title</th1>
364364
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -353,11 +353,11 @@
353 );
354 }
355
356 static const char zDefaultView[] =
357 @ <table cellpadding="5">
358 @ <tr><td align="right">Ticket&nbsp;UUID:</td><td bgcolor="#d0d0d0" colspan="3">
359 @ $<tkt_uuid>
360 @ </td></tr>
361 @ <tr><td align="right">Title:</td>
362 @ <td bgcolor="#d0d0d0" colspan="3" valign="top">
363 @ <th1>wiki $title</th1>
364
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -353,11 +353,11 @@
353 );
354 }
355
356 static const char zDefaultView[] =
357 @ <table cellpadding="5">
358 @ <tr><td align="right">Ticket&nbsp;UUID:</td><td style="background-color: #d0d0d0;" colspan="3">
359 @ $<tkt_uuid>
360 @ </td></tr>
361 @ <tr><td align="right">Title:</td>
362 @ <td bgcolor="#d0d0d0" colspan="3" valign="top">
363 @ <th1>wiki $title</th1>
364
+4 -4
--- src/wiki.c
+++ src/wiki.c
@@ -194,11 +194,11 @@
194194
style_submenu_element("Edit", "Edit Wiki Page", "%s/wikiedit?name=%T",
195195
g.zTop, zPageName);
196196
}
197197
if( rid && g.okApndWiki && g.okAttach ){
198198
style_submenu_element("Attach", "Add An Attachment",
199
- "%s/attachadd?page=%T&from=%s/wiki%%3fname=%T",
199
+ "%s/attachadd?page=%T&amp;from=%s/wiki%%3fname=%T",
200200
g.zTop, zPageName, g.zTop, zPageName);
201201
}
202202
if( rid && g.okApndWiki ){
203203
style_submenu_element("Append", "Add A Comment", "%s/wikiappend?name=%T",
204204
g.zTop, zPageName);
@@ -227,19 +227,19 @@
227227
@ <hr><h2>Attachments:</h2>
228228
@ <ul>
229229
}
230230
cnt++;
231231
if( g.okHistory && g.okRead ){
232
- @ <li><a href="%s(g.zTop)/attachview?page=%s(zPageName)&file=%t(zFile)">
232
+ @ <li><a href="%s(g.zTop)/attachview?page=%s(zPageName)&amp;file=%t(zFile)">
233233
@ %h(zFile)</a>
234234
}else{
235235
@ <li>%h(zFile)
236236
}
237237
@ added by %h(zUser) on
238238
hyperlink_to_date(zDate, ".");
239239
if( g.okWrWiki && g.okAttach ){
240
- @ [<a href="%s(g.zTop)/attachdelete?page=%s(zPageName)&file=%t(zFile)&from=%s(g.zTop)/wiki%%3fname=%s(zPageName)">delete</a>]
240
+ @ [<a href="%s(g.zTop)/attachdelete?page=%s(zPageName)&amp;file=%t(zFile)&amp;from=%s(g.zTop)/wiki%%3fname=%s(zPageName)">delete</a>]
241241
}
242242
}
243243
if( cnt ){
244244
@ </ul>
245245
}
@@ -560,11 +560,11 @@
560560
** Function called to output extra text at the end of each line in
561561
** a wiki history listing.
562562
*/
563563
static void wiki_history_extra(int rid){
564564
if( db_exists("SELECT 1 FROM tagxref WHERE rid=%d", rid) ){
565
- @ <a href="%s(g.zTop)/wdiff?name=%t(zWikiPageName)&a=%d(rid)">[diff]</a>
565
+ @ <a href="%s(g.zTop)/wdiff?name=%t(zWikiPageName)&amp;a=%d(rid)">[diff]</a>
566566
}
567567
}
568568
569569
/*
570570
** WEBPAGE: whistory
571571
--- src/wiki.c
+++ src/wiki.c
@@ -194,11 +194,11 @@
194 style_submenu_element("Edit", "Edit Wiki Page", "%s/wikiedit?name=%T",
195 g.zTop, zPageName);
196 }
197 if( rid && g.okApndWiki && g.okAttach ){
198 style_submenu_element("Attach", "Add An Attachment",
199 "%s/attachadd?page=%T&from=%s/wiki%%3fname=%T",
200 g.zTop, zPageName, g.zTop, zPageName);
201 }
202 if( rid && g.okApndWiki ){
203 style_submenu_element("Append", "Add A Comment", "%s/wikiappend?name=%T",
204 g.zTop, zPageName);
@@ -227,19 +227,19 @@
227 @ <hr><h2>Attachments:</h2>
228 @ <ul>
229 }
230 cnt++;
231 if( g.okHistory && g.okRead ){
232 @ <li><a href="%s(g.zTop)/attachview?page=%s(zPageName)&file=%t(zFile)">
233 @ %h(zFile)</a>
234 }else{
235 @ <li>%h(zFile)
236 }
237 @ added by %h(zUser) on
238 hyperlink_to_date(zDate, ".");
239 if( g.okWrWiki && g.okAttach ){
240 @ [<a href="%s(g.zTop)/attachdelete?page=%s(zPageName)&file=%t(zFile)&from=%s(g.zTop)/wiki%%3fname=%s(zPageName)">delete</a>]
241 }
242 }
243 if( cnt ){
244 @ </ul>
245 }
@@ -560,11 +560,11 @@
560 ** Function called to output extra text at the end of each line in
561 ** a wiki history listing.
562 */
563 static void wiki_history_extra(int rid){
564 if( db_exists("SELECT 1 FROM tagxref WHERE rid=%d", rid) ){
565 @ <a href="%s(g.zTop)/wdiff?name=%t(zWikiPageName)&a=%d(rid)">[diff]</a>
566 }
567 }
568
569 /*
570 ** WEBPAGE: whistory
571
--- src/wiki.c
+++ src/wiki.c
@@ -194,11 +194,11 @@
194 style_submenu_element("Edit", "Edit Wiki Page", "%s/wikiedit?name=%T",
195 g.zTop, zPageName);
196 }
197 if( rid && g.okApndWiki && g.okAttach ){
198 style_submenu_element("Attach", "Add An Attachment",
199 "%s/attachadd?page=%T&amp;from=%s/wiki%%3fname=%T",
200 g.zTop, zPageName, g.zTop, zPageName);
201 }
202 if( rid && g.okApndWiki ){
203 style_submenu_element("Append", "Add A Comment", "%s/wikiappend?name=%T",
204 g.zTop, zPageName);
@@ -227,19 +227,19 @@
227 @ <hr><h2>Attachments:</h2>
228 @ <ul>
229 }
230 cnt++;
231 if( g.okHistory && g.okRead ){
232 @ <li><a href="%s(g.zTop)/attachview?page=%s(zPageName)&amp;file=%t(zFile)">
233 @ %h(zFile)</a>
234 }else{
235 @ <li>%h(zFile)
236 }
237 @ added by %h(zUser) on
238 hyperlink_to_date(zDate, ".");
239 if( g.okWrWiki && g.okAttach ){
240 @ [<a href="%s(g.zTop)/attachdelete?page=%s(zPageName)&amp;file=%t(zFile)&amp;from=%s(g.zTop)/wiki%%3fname=%s(zPageName)">delete</a>]
241 }
242 }
243 if( cnt ){
244 @ </ul>
245 }
@@ -560,11 +560,11 @@
560 ** Function called to output extra text at the end of each line in
561 ** a wiki history listing.
562 */
563 static void wiki_history_extra(int rid){
564 if( db_exists("SELECT 1 FROM tagxref WHERE rid=%d", rid) ){
565 @ <a href="%s(g.zTop)/wdiff?name=%t(zWikiPageName)&amp;a=%d(rid)">[diff]</a>
566 }
567 }
568
569 /*
570 ** WEBPAGE: whistory
571

Keyboard Shortcuts

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