Fossil SCM

HTML validator error free ticket configuration

wolfgang 2010-09-11 21:20 wolfgangFormat2CSS
Commit cf8d628d1d9573621f0424a10949e5a6ab0096dd
2 files changed +4 -4 +28 -32
+4 -4
--- src/style.c
+++ src/style.c
@@ -277,11 +277,11 @@
277277
@ font-weight: bold;
278278
@ text-align: center;
279279
@ padding: 0 0 0 1em;
280280
@ color: #558195;
281281
@ vertical-align: bottom;
282
-@ width: 100%%;
282
+@ width: 100% ;
283283
@ }
284284
@
285285
@ /* The login status message in the top right-hand corner */
286286
@ div.status {
287287
@ display: table-cell;
@@ -295,11 +295,11 @@
295295
@ }
296296
@
297297
@ /* The header across the top of the page */
298298
@ div.header {
299299
@ display: table;
300
-@ width: 100%%;
300
+@ width: 100% ;
301301
@ }
302302
@
303303
@ /* The main menu bar that appears at the top of the page beneath
304304
@ ** the header */
305305
@ div.mainmenu {
@@ -480,16 +480,16 @@
480480
@ text-decoration: line-through;
481481
},
482482
{ "table.browser",
483483
"format for the file display table",
484484
@ /* the format for wiki errors */
485
- @ width: 100%%;
485
+ @ width: 100% ;
486486
@ border: 0;
487487
},
488488
{ "td.browser",
489489
"format for cells in the file browser",
490
- @ width: 25%%;
490
+ @ width: 24% ;
491491
@ vertical-align: top;
492492
},
493493
{ "ul.browser",
494494
"format for the list in the file browser",
495495
@ margin-left: 0.5em;
496496
--- src/style.c
+++ src/style.c
@@ -277,11 +277,11 @@
277 @ font-weight: bold;
278 @ text-align: center;
279 @ padding: 0 0 0 1em;
280 @ color: #558195;
281 @ vertical-align: bottom;
282 @ width: 100%%;
283 @ }
284 @
285 @ /* The login status message in the top right-hand corner */
286 @ div.status {
287 @ display: table-cell;
@@ -295,11 +295,11 @@
295 @ }
296 @
297 @ /* The header across the top of the page */
298 @ div.header {
299 @ display: table;
300 @ width: 100%%;
301 @ }
302 @
303 @ /* The main menu bar that appears at the top of the page beneath
304 @ ** the header */
305 @ div.mainmenu {
@@ -480,16 +480,16 @@
480 @ text-decoration: line-through;
481 },
482 { "table.browser",
483 "format for the file display table",
484 @ /* the format for wiki errors */
485 @ width: 100%%;
486 @ border: 0;
487 },
488 { "td.browser",
489 "format for cells in the file browser",
490 @ width: 25%%;
491 @ vertical-align: top;
492 },
493 { "ul.browser",
494 "format for the list in the file browser",
495 @ margin-left: 0.5em;
496
--- src/style.c
+++ src/style.c
@@ -277,11 +277,11 @@
277 @ font-weight: bold;
278 @ text-align: center;
279 @ padding: 0 0 0 1em;
280 @ color: #558195;
281 @ vertical-align: bottom;
282 @ width: 100% ;
283 @ }
284 @
285 @ /* The login status message in the top right-hand corner */
286 @ div.status {
287 @ display: table-cell;
@@ -295,11 +295,11 @@
295 @ }
296 @
297 @ /* The header across the top of the page */
298 @ div.header {
299 @ display: table;
300 @ width: 100% ;
301 @ }
302 @
303 @ /* The main menu bar that appears at the top of the page beneath
304 @ ** the header */
305 @ div.mainmenu {
@@ -480,16 +480,16 @@
480 @ text-decoration: line-through;
481 },
482 { "table.browser",
483 "format for the file display table",
484 @ /* the format for wiki errors */
485 @ width: 100% ;
486 @ border: 0;
487 },
488 { "td.browser",
489 "format for cells in the file browser",
490 @ width: 24% ;
491 @ vertical-align: top;
492 },
493 { "ul.browser",
494 "format for the list in the file browser",
495 @ margin-left: 0.5em;
496
+28 -32
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -130,21 +130,21 @@
130130
db_set(zDbField, z, 0);
131131
if( xRebuild ) xRebuild();
132132
cgi_redirect("tktsetup");
133133
}
134134
}
135
- @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="POST">
135
+ @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="post"><div>
136136
login_insert_csrf_secret();
137137
@ <p>%s(zDesc)</p>
138138
@ <textarea name="x" rows="%d(height)" cols="80">%h(z)</textarea>
139
- @ <blockquote>
140
- @ <input type="submit" name="submit" value="Apply Changes">
141
- @ <input type="submit" name="clear" value="Revert To Default">
142
- @ <input type="submit" name="setup" value="Cancel">
143
- @ </blockquote>
144
- @ </form>
145
- @ <hr>
139
+ @ <blockquote><p>
140
+ @ <input type="submit" name="submit" value="Apply Changes" />
141
+ @ <input type="submit" name="clear" value="Revert To Default" />
142
+ @ <input type="submit" name="setup" value="Cancel" />
143
+ @ </p></blockquote>
144
+ @ </div></form>
145
+ @ <hr />
146146
@ <h2>Default %s(zTitle)</h2>
147147
@ <blockquote><pre>
148148
@ %h(zDfltValue)
149149
@ </pre></blockquote>
150150
style_footer();
@@ -153,13 +153,13 @@
153153
/*
154154
** WEBPAGE: tktsetup_tab
155155
*/
156156
void tktsetup_tab_page(void){
157157
static const char zDesc[] =
158
- @ <p>Enter a valid CREATE TABLE statement for the "ticket" table. The
158
+ @ Enter a valid CREATE TABLE statement for the "ticket" table. The
159159
@ table must contain columns named "tkt_id", "tkt_uuid", and "tkt_mtime"
160
- @ with an unique index on "tkt_uuid" and "tkt_mtime".</p>
160
+ @ with an unique index on "tkt_uuid" and "tkt_mtime".
161161
;
162162
tktsetup_generic(
163163
"Ticket Table Schema",
164164
"ticket-table",
165165
zDefaultTicketTable,
@@ -229,12 +229,12 @@
229229
/*
230230
** WEBPAGE: tktsetup_com
231231
*/
232232
void tktsetup_com_page(void){
233233
static const char zDesc[] =
234
- @ <p>Enter TH1 script that initializes variables prior to generating
235
- @ any of the ticket view, edit, or creation pages.</p>
234
+ @ Enter TH1 script that initializes variables prior to generating
235
+ @ any of the ticket view, edit, or creation pages.
236236
;
237237
tktsetup_generic(
238238
"Ticket Common Script",
239239
"ticket-common",
240240
zDefaultTicketCommon,
@@ -338,12 +338,11 @@
338338
/*
339339
** WEBPAGE: tktsetup_newpage
340340
*/
341341
void tktsetup_newpage_page(void){
342342
static const char zDesc[] =
343
- @ <p>Enter HTML with embedded TH1 script that will render the "new ticket"
344
- @ page</p>
343
+ @ Enter HTML with embedded TH1 script that will render the "new ticket" page
345344
;
346345
tktsetup_generic(
347346
"HTML For New Tickets",
348347
"ticket-newpage",
349348
zDefaultNew,
@@ -412,12 +411,11 @@
412411
/*
413412
** WEBPAGE: tktsetup_viewpage
414413
*/
415414
void tktsetup_viewpage_page(void){
416415
static const char zDesc[] =
417
- @ <p>Enter HTML with embedded TH1 script that will render the "view ticket"
418
- @ page</p>
416
+ @ Enter HTML with embedded TH1 script that will render the "view ticket" page
419417
;
420418
tktsetup_generic(
421419
"HTML For Viewing Tickets",
422420
"ticket-viewpage",
423421
zDefaultView,
@@ -535,12 +533,11 @@
535533
/*
536534
** WEBPAGE: tktsetup_editpage
537535
*/
538536
void tktsetup_editpage_page(void){
539537
static const char zDesc[] =
540
- @ <p>Enter HTML with embedded TH1 script that will render the "edit ticket"
541
- @ page</p>
538
+ @ Enter HTML with embedded TH1 script that will render the "edit ticket" page
542539
;
543540
tktsetup_generic(
544541
"HTML For Editing Tickets",
545542
"ticket-editpage",
546543
zDefaultEdit,
@@ -585,12 +582,11 @@
585582
/*
586583
** WEBPAGE: tktsetup_reportlist
587584
*/
588585
void tktsetup_reportlist(void){
589586
static const char zDesc[] =
590
- @ <p>Enter HTML with embedded TH1 script that will render the "report list"
591
- @ page</p>
587
+ @ Enter HTML with embedded TH1 script that will render the "report list" page
592588
;
593589
tktsetup_generic(
594590
"HTML For Report List",
595591
"ticket-reportlist",
596592
zDefaultReportList,
@@ -633,13 +629,13 @@
633629
/*
634630
** WEBPAGE: tktsetup_rpttplt
635631
*/
636632
void tktsetup_rpttplt_page(void){
637633
static const char zDesc[] =
638
- @ <p>Enter the default ticket report format template. This is the
634
+ @ Enter the default ticket report format template. This is the
639635
@ the template report format that initially appears when creating a
640
- @ new ticket summary report.</p>
636
+ @ new ticket summary report.
641637
;
642638
tktsetup_generic(
643639
"Default Report Template",
644640
"ticket-report-template",
645641
zDefaultReport,
@@ -674,13 +670,13 @@
674670
/*
675671
** WEBPAGE: tktsetup_keytplt
676672
*/
677673
void tktsetup_keytplt_page(void){
678674
static const char zDesc[] =
679
- @ <p>Enter the default ticket report color-key template. This is the
675
+ @ Enter the default ticket report color-key template. This is the
680676
@ the color-key that initially appears when creating a
681
- @ new ticket summary report.</p>
677
+ @ new ticket summary report.
682678
;
683679
tktsetup_generic(
684680
"Default Report Color-Key Template",
685681
"ticket-key-template",
686682
zDefaultKey,
@@ -703,34 +699,34 @@
703699
if( P("setup") ){
704700
cgi_redirect("tktsetup");
705701
}
706702
style_header("Ticket Display On Timelines");
707703
db_begin_transaction();
708
- @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="POST">
704
+ @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="post"><div>
709705
login_insert_csrf_secret();
710706
711
- @ <hr>
707
+ @ <hr />
712708
entry_attribute("Ticket Title", 40, "ticket-title-expr", "t", "title");
713709
@ <p>An SQL expression in a query against the TICKET table that will
714710
@ return the title of the ticket for display purposes.</p>
715711
716
- @ <hr>
712
+ @ <hr />
717713
entry_attribute("Ticket Status", 40, "ticket-status-column", "s", "status");
718714
@ <p>The name of the column in the TICKET table that contains the ticket
719715
@ status in human-readable form. Case sensitive.</p>
720716
721
- @ <hr>
717
+ @ <hr />
722718
entry_attribute("Ticket Closed", 40, "ticket-closed-expr", "c",
723719
"status='Closed'");
724720
@ <p>An SQL expression that evaluates to true in a TICKET table query if
725721
@ the ticket is closed.</p>
726722
727
- @ <hr>
723
+ @ <hr />
728724
@ <p>
729
- @ <input type="submit" name="submit" value="Apply Changes">
730
- @ <input type="submit" name="setup" value="Cancel">
725
+ @ <input type="submit" name="submit" value="Apply Changes" />
726
+ @ <input type="submit" name="setup" value="Cancel" />
731727
@ </p>
732
- @ </form>
728
+ @ </div></form>
733729
db_end_transaction(0);
734730
style_footer();
735731
736732
}
737733
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -130,21 +130,21 @@
130 db_set(zDbField, z, 0);
131 if( xRebuild ) xRebuild();
132 cgi_redirect("tktsetup");
133 }
134 }
135 @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="POST">
136 login_insert_csrf_secret();
137 @ <p>%s(zDesc)</p>
138 @ <textarea name="x" rows="%d(height)" cols="80">%h(z)</textarea>
139 @ <blockquote>
140 @ <input type="submit" name="submit" value="Apply Changes">
141 @ <input type="submit" name="clear" value="Revert To Default">
142 @ <input type="submit" name="setup" value="Cancel">
143 @ </blockquote>
144 @ </form>
145 @ <hr>
146 @ <h2>Default %s(zTitle)</h2>
147 @ <blockquote><pre>
148 @ %h(zDfltValue)
149 @ </pre></blockquote>
150 style_footer();
@@ -153,13 +153,13 @@
153 /*
154 ** WEBPAGE: tktsetup_tab
155 */
156 void tktsetup_tab_page(void){
157 static const char zDesc[] =
158 @ <p>Enter a valid CREATE TABLE statement for the "ticket" table. The
159 @ table must contain columns named "tkt_id", "tkt_uuid", and "tkt_mtime"
160 @ with an unique index on "tkt_uuid" and "tkt_mtime".</p>
161 ;
162 tktsetup_generic(
163 "Ticket Table Schema",
164 "ticket-table",
165 zDefaultTicketTable,
@@ -229,12 +229,12 @@
229 /*
230 ** WEBPAGE: tktsetup_com
231 */
232 void tktsetup_com_page(void){
233 static const char zDesc[] =
234 @ <p>Enter TH1 script that initializes variables prior to generating
235 @ any of the ticket view, edit, or creation pages.</p>
236 ;
237 tktsetup_generic(
238 "Ticket Common Script",
239 "ticket-common",
240 zDefaultTicketCommon,
@@ -338,12 +338,11 @@
338 /*
339 ** WEBPAGE: tktsetup_newpage
340 */
341 void tktsetup_newpage_page(void){
342 static const char zDesc[] =
343 @ <p>Enter HTML with embedded TH1 script that will render the "new ticket"
344 @ page</p>
345 ;
346 tktsetup_generic(
347 "HTML For New Tickets",
348 "ticket-newpage",
349 zDefaultNew,
@@ -412,12 +411,11 @@
412 /*
413 ** WEBPAGE: tktsetup_viewpage
414 */
415 void tktsetup_viewpage_page(void){
416 static const char zDesc[] =
417 @ <p>Enter HTML with embedded TH1 script that will render the "view ticket"
418 @ page</p>
419 ;
420 tktsetup_generic(
421 "HTML For Viewing Tickets",
422 "ticket-viewpage",
423 zDefaultView,
@@ -535,12 +533,11 @@
535 /*
536 ** WEBPAGE: tktsetup_editpage
537 */
538 void tktsetup_editpage_page(void){
539 static const char zDesc[] =
540 @ <p>Enter HTML with embedded TH1 script that will render the "edit ticket"
541 @ page</p>
542 ;
543 tktsetup_generic(
544 "HTML For Editing Tickets",
545 "ticket-editpage",
546 zDefaultEdit,
@@ -585,12 +582,11 @@
585 /*
586 ** WEBPAGE: tktsetup_reportlist
587 */
588 void tktsetup_reportlist(void){
589 static const char zDesc[] =
590 @ <p>Enter HTML with embedded TH1 script that will render the "report list"
591 @ page</p>
592 ;
593 tktsetup_generic(
594 "HTML For Report List",
595 "ticket-reportlist",
596 zDefaultReportList,
@@ -633,13 +629,13 @@
633 /*
634 ** WEBPAGE: tktsetup_rpttplt
635 */
636 void tktsetup_rpttplt_page(void){
637 static const char zDesc[] =
638 @ <p>Enter the default ticket report format template. This is the
639 @ the template report format that initially appears when creating a
640 @ new ticket summary report.</p>
641 ;
642 tktsetup_generic(
643 "Default Report Template",
644 "ticket-report-template",
645 zDefaultReport,
@@ -674,13 +670,13 @@
674 /*
675 ** WEBPAGE: tktsetup_keytplt
676 */
677 void tktsetup_keytplt_page(void){
678 static const char zDesc[] =
679 @ <p>Enter the default ticket report color-key template. This is the
680 @ the color-key that initially appears when creating a
681 @ new ticket summary report.</p>
682 ;
683 tktsetup_generic(
684 "Default Report Color-Key Template",
685 "ticket-key-template",
686 zDefaultKey,
@@ -703,34 +699,34 @@
703 if( P("setup") ){
704 cgi_redirect("tktsetup");
705 }
706 style_header("Ticket Display On Timelines");
707 db_begin_transaction();
708 @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="POST">
709 login_insert_csrf_secret();
710
711 @ <hr>
712 entry_attribute("Ticket Title", 40, "ticket-title-expr", "t", "title");
713 @ <p>An SQL expression in a query against the TICKET table that will
714 @ return the title of the ticket for display purposes.</p>
715
716 @ <hr>
717 entry_attribute("Ticket Status", 40, "ticket-status-column", "s", "status");
718 @ <p>The name of the column in the TICKET table that contains the ticket
719 @ status in human-readable form. Case sensitive.</p>
720
721 @ <hr>
722 entry_attribute("Ticket Closed", 40, "ticket-closed-expr", "c",
723 "status='Closed'");
724 @ <p>An SQL expression that evaluates to true in a TICKET table query if
725 @ the ticket is closed.</p>
726
727 @ <hr>
728 @ <p>
729 @ <input type="submit" name="submit" value="Apply Changes">
730 @ <input type="submit" name="setup" value="Cancel">
731 @ </p>
732 @ </form>
733 db_end_transaction(0);
734 style_footer();
735
736 }
737
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -130,21 +130,21 @@
130 db_set(zDbField, z, 0);
131 if( xRebuild ) xRebuild();
132 cgi_redirect("tktsetup");
133 }
134 }
135 @ <form action="%s(g.zBaseURL)/%s(g.zPath)" method="post"><div>
136 login_insert_csrf_secret();
137 @ <p>%s(zDesc)</p>
138 @ <textarea name="x" rows="%d(height)" cols="80">%h(z)</textarea>
139 @ <blockquote><p>
140 @ <input type="submit" name="submit" value="Apply Changes" />
141 @ <input type="submit" name="clear" value="Revert To Default" />
142 @ <input type="submit" name="setup" value="Cancel" />
143 @ </p></blockquote>
144 @ </div></form>
145 @ <hr />
146 @ <h2>Default %s(zTitle)</h2>
147 @ <blockquote><pre>
148 @ %h(zDfltValue)
149 @ </pre></blockquote>
150 style_footer();
@@ -153,13 +153,13 @@
153 /*
154 ** WEBPAGE: tktsetup_tab
155 */
156 void tktsetup_tab_page(void){
157 static const char zDesc[] =
158 @ Enter a valid CREATE TABLE statement for the "ticket" table. The
159 @ table must contain columns named "tkt_id", "tkt_uuid", and "tkt_mtime"
160 @ with an unique index on "tkt_uuid" and "tkt_mtime".
161 ;
162 tktsetup_generic(
163 "Ticket Table Schema",
164 "ticket-table",
165 zDefaultTicketTable,
@@ -229,12 +229,12 @@
229 /*
230 ** WEBPAGE: tktsetup_com
231 */
232 void tktsetup_com_page(void){
233 static const char zDesc[] =
234 @ Enter TH1 script that initializes variables prior to generating
235 @ any of the ticket view, edit, or creation pages.
236 ;
237 tktsetup_generic(
238 "Ticket Common Script",
239 "ticket-common",
240 zDefaultTicketCommon,
@@ -338,12 +338,11 @@
338 /*
339 ** WEBPAGE: tktsetup_newpage
340 */
341 void tktsetup_newpage_page(void){
342 static const char zDesc[] =
343 @ Enter HTML with embedded TH1 script that will render the "new ticket" page
 
344 ;
345 tktsetup_generic(
346 "HTML For New Tickets",
347 "ticket-newpage",
348 zDefaultNew,
@@ -412,12 +411,11 @@
411 /*
412 ** WEBPAGE: tktsetup_viewpage
413 */
414 void tktsetup_viewpage_page(void){
415 static const char zDesc[] =
416 @ Enter HTML with embedded TH1 script that will render the "view ticket" page
 
417 ;
418 tktsetup_generic(
419 "HTML For Viewing Tickets",
420 "ticket-viewpage",
421 zDefaultView,
@@ -535,12 +533,11 @@
533 /*
534 ** WEBPAGE: tktsetup_editpage
535 */
536 void tktsetup_editpage_page(void){
537 static const char zDesc[] =
538 @ Enter HTML with embedded TH1 script that will render the "edit ticket" page
 
539 ;
540 tktsetup_generic(
541 "HTML For Editing Tickets",
542 "ticket-editpage",
543 zDefaultEdit,
@@ -585,12 +582,11 @@
582 /*
583 ** WEBPAGE: tktsetup_reportlist
584 */
585 void tktsetup_reportlist(void){
586 static const char zDesc[] =
587 @ Enter HTML with embedded TH1 script that will render the "report list" page
 
588 ;
589 tktsetup_generic(
590 "HTML For Report List",
591 "ticket-reportlist",
592 zDefaultReportList,
@@ -633,13 +629,13 @@
629 /*
630 ** WEBPAGE: tktsetup_rpttplt
631 */
632 void tktsetup_rpttplt_page(void){
633 static const char zDesc[] =
634 @ Enter the default ticket report format template. This is the
635 @ the template report format that initially appears when creating a
636 @ new ticket summary report.
637 ;
638 tktsetup_generic(
639 "Default Report Template",
640 "ticket-report-template",
641 zDefaultReport,
@@ -674,13 +670,13 @@
670 /*
671 ** WEBPAGE: tktsetup_keytplt
672 */
673 void tktsetup_keytplt_page(void){
674 static const char zDesc[] =
675 @ Enter the default ticket report color-key template. This is the
676 @ the color-key that initially appears when creating a
677 @ new ticket summary report.
678 ;
679 tktsetup_generic(
680 "Default Report Color-Key Template",
681 "ticket-key-template",
682 zDefaultKey,
@@ -703,34 +699,34 @@
699 if( P("setup") ){
700 cgi_redirect("tktsetup");
701 }
702 style_header("Ticket Display On Timelines");
703 db_begin_transaction();
704 @ <form action="%s(g.zBaseURL)/tktsetup_timeline" method="post"><div>
705 login_insert_csrf_secret();
706
707 @ <hr />
708 entry_attribute("Ticket Title", 40, "ticket-title-expr", "t", "title");
709 @ <p>An SQL expression in a query against the TICKET table that will
710 @ return the title of the ticket for display purposes.</p>
711
712 @ <hr />
713 entry_attribute("Ticket Status", 40, "ticket-status-column", "s", "status");
714 @ <p>The name of the column in the TICKET table that contains the ticket
715 @ status in human-readable form. Case sensitive.</p>
716
717 @ <hr />
718 entry_attribute("Ticket Closed", 40, "ticket-closed-expr", "c",
719 "status='Closed'");
720 @ <p>An SQL expression that evaluates to true in a TICKET table query if
721 @ the ticket is closed.</p>
722
723 @ <hr />
724 @ <p>
725 @ <input type="submit" name="submit" value="Apply Changes" />
726 @ <input type="submit" name="setup" value="Cancel" />
727 @ </p>
728 @ </div></form>
729 db_end_transaction(0);
730 style_footer();
731
732 }
733

Keyboard Shortcuts

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