| | @@ -101,10 +101,11 @@ |
| 101 | 101 | if( g.zLogin ){ |
| 102 | 102 | Th_Store("login", g.zLogin); |
| 103 | 103 | } |
| 104 | 104 | if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1); |
| 105 | 105 | Th_Render(zHeader); |
| 106 | + cgi_printf("%s","<link rel=\"stylesheet\" href=\"stdstyle.css\" type=\"text/css\">"); |
| 106 | 107 | if( g.thTrace ) Th_Trace("END_HEADER<br />\n", -1); |
| 107 | 108 | Th_Unstore("title"); /* Avoid collisions with ticket field names */ |
| 108 | 109 | cgi_destination(CGI_BODY); |
| 109 | 110 | g.cgiOutput = 1; |
| 110 | 111 | headerHasBeenGenerated = 1; |
| | @@ -379,20 +380,49 @@ |
| 379 | 380 | @ vertical-align: top; |
| 380 | 381 | @ text-align: right; |
| 381 | 382 | @ padding: 0.2ex 2ex; |
| 382 | 383 | @ } |
| 383 | 384 | ; |
| 384 | | - |
| 385 | +const char zTdTimelineTimeStampCell[] = |
| 386 | +@ /* The time column in timeline tables */ |
| 387 | +@ td.timelineTimeStampCell { |
| 388 | +@ valign: top; |
| 389 | +@ text-align: right; |
| 390 | +@} |
| 391 | +; |
| 392 | +const char zTdTimelineOmitted[] = |
| 393 | +@ /* The omitted line in timeline tables */ |
| 394 | +@ td.timelineOmitted { |
| 395 | +@ font-size: small; |
| 396 | +@ font-style: italic; |
| 397 | +@ } |
| 398 | +; |
| 399 | +const char zTdTimelineComment[] = |
| 400 | +@ /* The comment cell in timeline tables */ |
| 401 | +@ td.timelineComment { |
| 402 | +@ valign: top; |
| 403 | +@ text-align: left; |
| 404 | +@ } |
| 405 | +; |
| 406 | + |
| 385 | 407 | /* |
| 386 | 408 | ** WEBPAGE: style.css |
| 387 | 409 | */ |
| 388 | 410 | void page_style_css(void){ |
| 389 | 411 | char *zCSS = 0; |
| 390 | 412 | |
| 391 | 413 | cgi_set_content_type("text/css"); |
| 392 | 414 | zCSS = db_get("css",(char*)zDefaultCSS); |
| 393 | 415 | cgi_append_content(zCSS, -1); |
| 416 | + cgi_append_content("\n", -1); |
| 417 | + /* append internal classes, if not already in style sheet */ |
| 418 | + if (!strstr(zCSS,"timelineTimeStampCell")) |
| 419 | + cgi_append_content(zTdTimelineTimeStampCell,-1); |
| 420 | + if (!strstr(zCSS,"timelineOmitted")) |
| 421 | + cgi_append_content(zTdTimelineOmitted,-1); |
| 422 | + if (!strstr(zCSS,"timelineComment")) |
| 423 | + cgi_append_content(zTdTimelineComment,-1); |
| 394 | 424 | g.isConst = 1; |
| 395 | 425 | } |
| 396 | 426 | |
| 397 | 427 | /* |
| 398 | 428 | ** WEBPAGE: test_env |
| 399 | 429 | |