Fossil SCM
more formats to css
Commit
e05f750a4546aeecabb411d2e92506bea8fb8775
Parent
6759e00eb89fcf3…
7 files changed
+4
-4
+3
-3
+2
-2
+6
-6
+44
-4
+2
-2
+1
-1
+4
-4
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -292,11 +292,11 @@ | ||
| 292 | 292 | va_start(ap, zFormat); |
| 293 | 293 | z = vmprintf(zFormat, ap); |
| 294 | 294 | va_end(ap); |
| 295 | 295 | if( g.cgiOutput && once ){ |
| 296 | 296 | once = 0; |
| 297 | - cgi_printf("<p><font color=\"red\">%h</font></p>", z); | |
| 297 | + cgi_printf("<p class=\"generalError\">%h</p>", z); | |
| 298 | 298 | cgi_reply(); |
| 299 | 299 | }else{ |
| 300 | 300 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 301 | 301 | } |
| 302 | 302 | db_force_rollback(); |
| @@ -309,11 +309,11 @@ | ||
| 309 | 309 | va_start(ap, zFormat); |
| 310 | 310 | z = vmprintf(zFormat, ap); |
| 311 | 311 | va_end(ap); |
| 312 | 312 | if( g.cgiOutput ){ |
| 313 | 313 | g.cgiOutput = 0; |
| 314 | - cgi_printf("<p><font color=\"red\">%h</font></p>", z); | |
| 314 | + cgi_printf("<p class=\"generalError\">%h</p>", z); | |
| 315 | 315 | cgi_reply(); |
| 316 | 316 | }else{ |
| 317 | 317 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 318 | 318 | } |
| 319 | 319 | db_force_rollback(); |
| @@ -337,11 +337,11 @@ | ||
| 337 | 337 | va_start(ap, zFormat); |
| 338 | 338 | z = vmprintf(zFormat, ap); |
| 339 | 339 | va_end(ap); |
| 340 | 340 | if( g.cgiOutput ){ |
| 341 | 341 | g.cgiOutput = 0; |
| 342 | - cgi_printf("<p><font color=\"red\">%h</font></p>", z); | |
| 342 | + cgi_printf("<p class=\"generalError\">%h</p>", z); | |
| 343 | 343 | cgi_reply(); |
| 344 | 344 | }else{ |
| 345 | 345 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 346 | 346 | } |
| 347 | 347 | db_force_rollback(); |
| @@ -355,11 +355,11 @@ | ||
| 355 | 355 | va_list ap; |
| 356 | 356 | va_start(ap, zFormat); |
| 357 | 357 | z = vmprintf(zFormat, ap); |
| 358 | 358 | va_end(ap); |
| 359 | 359 | if( g.cgiOutput ){ |
| 360 | - cgi_printf("<p><font color=\"red\">%h</font></p>", z); | |
| 360 | + cgi_printf("<p class=\"generalError\">%h</p>", z); | |
| 361 | 361 | }else{ |
| 362 | 362 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 363 | 363 | } |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -292,11 +292,11 @@ | |
| 292 | va_start(ap, zFormat); |
| 293 | z = vmprintf(zFormat, ap); |
| 294 | va_end(ap); |
| 295 | if( g.cgiOutput && once ){ |
| 296 | once = 0; |
| 297 | cgi_printf("<p><font color=\"red\">%h</font></p>", z); |
| 298 | cgi_reply(); |
| 299 | }else{ |
| 300 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 301 | } |
| 302 | db_force_rollback(); |
| @@ -309,11 +309,11 @@ | |
| 309 | va_start(ap, zFormat); |
| 310 | z = vmprintf(zFormat, ap); |
| 311 | va_end(ap); |
| 312 | if( g.cgiOutput ){ |
| 313 | g.cgiOutput = 0; |
| 314 | cgi_printf("<p><font color=\"red\">%h</font></p>", z); |
| 315 | cgi_reply(); |
| 316 | }else{ |
| 317 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 318 | } |
| 319 | db_force_rollback(); |
| @@ -337,11 +337,11 @@ | |
| 337 | va_start(ap, zFormat); |
| 338 | z = vmprintf(zFormat, ap); |
| 339 | va_end(ap); |
| 340 | if( g.cgiOutput ){ |
| 341 | g.cgiOutput = 0; |
| 342 | cgi_printf("<p><font color=\"red\">%h</font></p>", z); |
| 343 | cgi_reply(); |
| 344 | }else{ |
| 345 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 346 | } |
| 347 | db_force_rollback(); |
| @@ -355,11 +355,11 @@ | |
| 355 | va_list ap; |
| 356 | va_start(ap, zFormat); |
| 357 | z = vmprintf(zFormat, ap); |
| 358 | va_end(ap); |
| 359 | if( g.cgiOutput ){ |
| 360 | cgi_printf("<p><font color=\"red\">%h</font></p>", z); |
| 361 | }else{ |
| 362 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -292,11 +292,11 @@ | |
| 292 | va_start(ap, zFormat); |
| 293 | z = vmprintf(zFormat, ap); |
| 294 | va_end(ap); |
| 295 | if( g.cgiOutput && once ){ |
| 296 | once = 0; |
| 297 | cgi_printf("<p class=\"generalError\">%h</p>", z); |
| 298 | cgi_reply(); |
| 299 | }else{ |
| 300 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 301 | } |
| 302 | db_force_rollback(); |
| @@ -309,11 +309,11 @@ | |
| 309 | va_start(ap, zFormat); |
| 310 | z = vmprintf(zFormat, ap); |
| 311 | va_end(ap); |
| 312 | if( g.cgiOutput ){ |
| 313 | g.cgiOutput = 0; |
| 314 | cgi_printf("<p class=\"generalError\">%h</p>", z); |
| 315 | cgi_reply(); |
| 316 | }else{ |
| 317 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 318 | } |
| 319 | db_force_rollback(); |
| @@ -337,11 +337,11 @@ | |
| 337 | va_start(ap, zFormat); |
| 338 | z = vmprintf(zFormat, ap); |
| 339 | va_end(ap); |
| 340 | if( g.cgiOutput ){ |
| 341 | g.cgiOutput = 0; |
| 342 | cgi_printf("<p class=\"generalError\">%h</p>", z); |
| 343 | cgi_reply(); |
| 344 | }else{ |
| 345 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 346 | } |
| 347 | db_force_rollback(); |
| @@ -355,11 +355,11 @@ | |
| 355 | va_list ap; |
| 356 | va_start(ap, zFormat); |
| 357 | z = vmprintf(zFormat, ap); |
| 358 | va_end(ap); |
| 359 | if( g.cgiOutput ){ |
| 360 | cgi_printf("<p class=\"generalError\">%h</p>", z); |
| 361 | }else{ |
| 362 | fprintf(stderr, "%s: %s\n", g.argv[0], z); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 |
+3
-3
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -397,11 +397,11 @@ | ||
| 397 | 397 | if( rn>0 ){ |
| 398 | 398 | style_submenu_element("Delete", "Delete", "rptedit?rn=%d&del1=1", rn); |
| 399 | 399 | } |
| 400 | 400 | style_header(rn>0 ? "Edit Report Format":"Create New Report Format"); |
| 401 | 401 | if( zErr ){ |
| 402 | - @ <blockquote><font color="#ff0000"><b>%h(zErr)</b></font></blockquote> | |
| 402 | + @ <blockquote class="reportError">%h(zErr)</blockquote> | |
| 403 | 403 | } |
| 404 | 404 | @ <form action="rptedit" method="post"><div> |
| 405 | 405 | @ <input type="hidden" name="rn" value="%d(rn)" /> |
| 406 | 406 | @ <p>Report Title:<br /> |
| 407 | 407 | @ <input type="text" name="t" value="%h(zTitle)" size="60" /></p> |
| @@ -930,17 +930,17 @@ | ||
| 930 | 930 | sqlite3_set_authorizer(g.db, report_query_authorizer, (void*)&zErr1); |
| 931 | 931 | sqlite3_exec(g.db, zSql, generate_html, &sState, &zErr2); |
| 932 | 932 | sqlite3_set_authorizer(g.db, 0, 0); |
| 933 | 933 | @ </table> |
| 934 | 934 | if( zErr1 ){ |
| 935 | - @ <p><font color="red"><b>Error: %h(zErr1)</b></font></p> | |
| 935 | + @ <p class="reportError">Error: %h(zErr1)</p> | |
| 936 | 936 | }else if( zErr2 ){ |
| 937 | - @ <p><font color="red"><b>Error: %h(zErr2)</b></font></p> | |
| 937 | + @ <p class="reportError">Error: %h(zErr2)</p> | |
| 938 | 938 | } |
| 939 | 939 | style_footer(); |
| 940 | 940 | }else{ |
| 941 | 941 | sqlite3_set_authorizer(g.db, report_query_authorizer, (void*)&zErr1); |
| 942 | 942 | sqlite3_exec(g.db, zSql, output_tab_separated, &count, &zErr2); |
| 943 | 943 | sqlite3_set_authorizer(g.db, 0, 0); |
| 944 | 944 | cgi_set_content_type("text/plain"); |
| 945 | 945 | } |
| 946 | 946 | } |
| 947 | 947 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -397,11 +397,11 @@ | |
| 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 | } |
| 404 | @ <form action="rptedit" method="post"><div> |
| 405 | @ <input type="hidden" name="rn" value="%d(rn)" /> |
| 406 | @ <p>Report Title:<br /> |
| 407 | @ <input type="text" name="t" value="%h(zTitle)" size="60" /></p> |
| @@ -930,17 +930,17 @@ | |
| 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 | @ </table> |
| 934 | if( zErr1 ){ |
| 935 | @ <p><font color="red"><b>Error: %h(zErr1)</b></font></p> |
| 936 | }else if( zErr2 ){ |
| 937 | @ <p><font color="red"><b>Error: %h(zErr2)</b></font></p> |
| 938 | } |
| 939 | style_footer(); |
| 940 | }else{ |
| 941 | sqlite3_set_authorizer(g.db, report_query_authorizer, (void*)&zErr1); |
| 942 | sqlite3_exec(g.db, zSql, output_tab_separated, &count, &zErr2); |
| 943 | sqlite3_set_authorizer(g.db, 0, 0); |
| 944 | cgi_set_content_type("text/plain"); |
| 945 | } |
| 946 | } |
| 947 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -397,11 +397,11 @@ | |
| 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 class="reportError">%h(zErr)</blockquote> |
| 403 | } |
| 404 | @ <form action="rptedit" method="post"><div> |
| 405 | @ <input type="hidden" name="rn" value="%d(rn)" /> |
| 406 | @ <p>Report Title:<br /> |
| 407 | @ <input type="text" name="t" value="%h(zTitle)" size="60" /></p> |
| @@ -930,17 +930,17 @@ | |
| 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 | @ </table> |
| 934 | if( zErr1 ){ |
| 935 | @ <p class="reportError">Error: %h(zErr1)</p> |
| 936 | }else if( zErr2 ){ |
| 937 | @ <p class="reportError">Error: %h(zErr2)</p> |
| 938 | } |
| 939 | style_footer(); |
| 940 | }else{ |
| 941 | sqlite3_set_authorizer(g.db, report_query_authorizer, (void*)&zErr1); |
| 942 | sqlite3_exec(g.db, zSql, output_tab_separated, &count, &zErr2); |
| 943 | sqlite3_set_authorizer(g.db, 0, 0); |
| 944 | cgi_set_content_type("text/plain"); |
| 945 | } |
| 946 | } |
| 947 |
+2
-2
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -507,14 +507,14 @@ | ||
| 507 | 507 | @ </div></form> |
| 508 | 508 | @ </div> |
| 509 | 509 | @ <h2>Privileges And Capabilities:</h2> |
| 510 | 510 | @ <ul> |
| 511 | 511 | if( higherUser ){ |
| 512 | - @ <li><p><font color="blue"><b> | |
| 512 | + @ <li><p class=missingPriv"> | |
| 513 | 513 | @ User %h(zLogin) has Setup privileges and you only have Admin privileges |
| 514 | 514 | @ so you are not permitted to make changes to %h(zLogin). |
| 515 | - @ </b></font></p></li> | |
| 515 | + @ </p></li> | |
| 516 | 516 | @ |
| 517 | 517 | } |
| 518 | 518 | @ <li><p> |
| 519 | 519 | @ The <span class="capability">Setup</span> user can make arbitrary |
| 520 | 520 | @ configuration changes. An <span class="usertype">Admin</span> user |
| 521 | 521 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -507,14 +507,14 @@ | |
| 507 | @ </div></form> |
| 508 | @ </div> |
| 509 | @ <h2>Privileges And Capabilities:</h2> |
| 510 | @ <ul> |
| 511 | if( higherUser ){ |
| 512 | @ <li><p><font color="blue"><b> |
| 513 | @ User %h(zLogin) has Setup privileges and you only have Admin privileges |
| 514 | @ so you are not permitted to make changes to %h(zLogin). |
| 515 | @ </b></font></p></li> |
| 516 | @ |
| 517 | } |
| 518 | @ <li><p> |
| 519 | @ The <span class="capability">Setup</span> user can make arbitrary |
| 520 | @ configuration changes. An <span class="usertype">Admin</span> user |
| 521 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -507,14 +507,14 @@ | |
| 507 | @ </div></form> |
| 508 | @ </div> |
| 509 | @ <h2>Privileges And Capabilities:</h2> |
| 510 | @ <ul> |
| 511 | if( higherUser ){ |
| 512 | @ <li><p class=missingPriv"> |
| 513 | @ User %h(zLogin) has Setup privileges and you only have Admin privileges |
| 514 | @ so you are not permitted to make changes to %h(zLogin). |
| 515 | @ </p></li> |
| 516 | @ |
| 517 | } |
| 518 | @ <li><p> |
| 519 | @ The <span class="capability">Setup</span> user can make arbitrary |
| 520 | @ configuration changes. An <span class="usertype">Admin</span> user |
| 521 |
+6
-6
| --- src/shun.c | ||
| +++ src/shun.c | ||
| @@ -69,29 +69,29 @@ | ||
| 69 | 69 | style_header("Shunned Artifacts"); |
| 70 | 70 | if( zUuid && P("sub") ){ |
| 71 | 71 | login_verify_csrf_secret(); |
| 72 | 72 | db_multi_exec("DELETE FROM shun WHERE uuid='%s'", zUuid); |
| 73 | 73 | if( db_exists("SELECT 1 FROM blob WHERE uuid='%s'", zUuid) ){ |
| 74 | - @ <p><font color="blue">Artifact | |
| 74 | + @ <p class="noMoreShun">Artifact | |
| 75 | 75 | @ <a href="%s(g.zBaseURL)/artifact/%s(zUuid)">%s(zUuid)</a> is no |
| 76 | - @ longer being shunned.</font></p> | |
| 76 | + @ longer being shunned.</p> | |
| 77 | 77 | }else{ |
| 78 | - @ <p><font color="blue">Artifact %s(zUuid)</a> will no longer | |
| 78 | + @ <p class="noMoreShun">Artifact %s(zUuid) will no longer | |
| 79 | 79 | @ be shunned. But it does not exist in the repository. It |
| 80 | 80 | @ may be necessary to rebuild the repository using the |
| 81 | 81 | @ <b>fossil rebuild</b> command-line before the artifact content |
| 82 | - @ can pulled in from other respositories.</font></p> | |
| 82 | + @ can pulled in from other respositories.</p> | |
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | if( zUuid && P("add") ){ |
| 86 | 86 | login_verify_csrf_secret(); |
| 87 | 87 | db_multi_exec("INSERT OR IGNORE INTO shun VALUES('%s')", zUuid); |
| 88 | - @ <p><font color="blue">Artifact | |
| 88 | + @ <p class="shunned">Artifact | |
| 89 | 89 | @ <a href="%s(g.zBaseURL)/artifact/%s(zUuid)">%s(zUuid)</a> has been |
| 90 | 90 | @ shunned. It will no longer be pushed. |
| 91 | 91 | @ It will be removed from the repository the next time the respository |
| 92 | - @ is rebuilt using the <b>fossil rebuild</b> command-line</font></p> | |
| 92 | + @ is rebuilt using the <b>fossil rebuild</b> command-line</p> | |
| 93 | 93 | } |
| 94 | 94 | @ <p>A shunned artifact will not be pushed nor accepted in a pull and the |
| 95 | 95 | @ artifact content will be purged from the repository the next time the |
| 96 | 96 | @ repository is rebuilt. A list of shunned artifacts can be seen at the |
| 97 | 97 | @ bottom of this page.</p> |
| 98 | 98 |
| --- src/shun.c | |
| +++ src/shun.c | |
| @@ -69,29 +69,29 @@ | |
| 69 | style_header("Shunned Artifacts"); |
| 70 | if( zUuid && P("sub") ){ |
| 71 | login_verify_csrf_secret(); |
| 72 | db_multi_exec("DELETE FROM shun WHERE uuid='%s'", zUuid); |
| 73 | if( db_exists("SELECT 1 FROM blob WHERE uuid='%s'", zUuid) ){ |
| 74 | @ <p><font color="blue">Artifact |
| 75 | @ <a href="%s(g.zBaseURL)/artifact/%s(zUuid)">%s(zUuid)</a> is no |
| 76 | @ longer being shunned.</font></p> |
| 77 | }else{ |
| 78 | @ <p><font color="blue">Artifact %s(zUuid)</a> will no longer |
| 79 | @ be shunned. But it does not exist in the repository. It |
| 80 | @ may be necessary to rebuild the repository using the |
| 81 | @ <b>fossil rebuild</b> command-line before the artifact content |
| 82 | @ can pulled in from other respositories.</font></p> |
| 83 | } |
| 84 | } |
| 85 | if( zUuid && P("add") ){ |
| 86 | login_verify_csrf_secret(); |
| 87 | db_multi_exec("INSERT OR IGNORE INTO shun VALUES('%s')", zUuid); |
| 88 | @ <p><font color="blue">Artifact |
| 89 | @ <a href="%s(g.zBaseURL)/artifact/%s(zUuid)">%s(zUuid)</a> has been |
| 90 | @ shunned. It will no longer be pushed. |
| 91 | @ It will be removed from the repository the next time the respository |
| 92 | @ is rebuilt using the <b>fossil rebuild</b> command-line</font></p> |
| 93 | } |
| 94 | @ <p>A shunned artifact will not be pushed nor accepted in a pull and the |
| 95 | @ artifact content will be purged from the repository the next time the |
| 96 | @ repository is rebuilt. A list of shunned artifacts can be seen at the |
| 97 | @ bottom of this page.</p> |
| 98 |
| --- src/shun.c | |
| +++ src/shun.c | |
| @@ -69,29 +69,29 @@ | |
| 69 | style_header("Shunned Artifacts"); |
| 70 | if( zUuid && P("sub") ){ |
| 71 | login_verify_csrf_secret(); |
| 72 | db_multi_exec("DELETE FROM shun WHERE uuid='%s'", zUuid); |
| 73 | if( db_exists("SELECT 1 FROM blob WHERE uuid='%s'", zUuid) ){ |
| 74 | @ <p class="noMoreShun">Artifact |
| 75 | @ <a href="%s(g.zBaseURL)/artifact/%s(zUuid)">%s(zUuid)</a> is no |
| 76 | @ longer being shunned.</p> |
| 77 | }else{ |
| 78 | @ <p class="noMoreShun">Artifact %s(zUuid) will no longer |
| 79 | @ be shunned. But it does not exist in the repository. It |
| 80 | @ may be necessary to rebuild the repository using the |
| 81 | @ <b>fossil rebuild</b> command-line before the artifact content |
| 82 | @ can pulled in from other respositories.</p> |
| 83 | } |
| 84 | } |
| 85 | if( zUuid && P("add") ){ |
| 86 | login_verify_csrf_secret(); |
| 87 | db_multi_exec("INSERT OR IGNORE INTO shun VALUES('%s')", zUuid); |
| 88 | @ <p class="shunned">Artifact |
| 89 | @ <a href="%s(g.zBaseURL)/artifact/%s(zUuid)">%s(zUuid)</a> has been |
| 90 | @ shunned. It will no longer be pushed. |
| 91 | @ It will be removed from the repository the next time the respository |
| 92 | @ is rebuilt using the <b>fossil rebuild</b> command-line</p> |
| 93 | } |
| 94 | @ <p>A shunned artifact will not be pushed nor accepted in a pull and the |
| 95 | @ artifact content will be purged from the repository the next time the |
| 96 | @ repository is rebuilt. A list of shunned artifacts can be seen at the |
| 97 | @ bottom of this page.</p> |
| 98 |
+44
-4
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -159,13 +159,13 @@ | ||
| 159 | 159 | Th_Render(zFooter); |
| 160 | 160 | if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1); |
| 161 | 161 | |
| 162 | 162 | /* Render trace log if TH1 tracing is enabled. */ |
| 163 | 163 | if( g.thTrace ){ |
| 164 | - cgi_append_content("<font color=\"red\"><hr />\n", -1); | |
| 164 | + cgi_append_content("<span class=\"thTrace\"><hr />\n", -1); | |
| 165 | 165 | cgi_append_content(blob_str(&g.thLog), blob_size(&g.thLog)); |
| 166 | - cgi_append_content("</font>\n", -1); | |
| 166 | + cgi_append_content("</span>\n", -1); | |
| 167 | 167 | } |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /* |
| 171 | 171 | ** Begin a side-box on the right-hand side of a page. The title and |
| @@ -531,13 +531,13 @@ | ||
| 531 | 531 | }, |
| 532 | 532 | { "table.captcha", |
| 533 | 533 | "format for the layout table, used for the captcha display", |
| 534 | 534 | @ margin: auto; |
| 535 | 535 | @ padding: 10px; |
| 536 | - @ border-width: 1; | |
| 536 | + @ border-width: 4px; | |
| 537 | 537 | @ border-style: double; |
| 538 | - @ bordor-color: black; | |
| 538 | + @ border-color: black; | |
| 539 | 539 | }, |
| 540 | 540 | { "td.login_out_label", |
| 541 | 541 | "format for the label cells in the login/out table", |
| 542 | 542 | @ text-align: center; |
| 543 | 543 | }, |
| @@ -639,10 +639,14 @@ | ||
| 639 | 639 | @ content:"'"; |
| 640 | 640 | }, |
| 641 | 641 | { "span.usertype:after", |
| 642 | 642 | "trailing text for user types, mentioned on the user edit page", |
| 643 | 643 | @ content:"'"; |
| 644 | + }, | |
| 645 | + { "p.missingPriv", | |
| 646 | + "format for missing priviliges note on user setup page", | |
| 647 | + @ color: blue; | |
| 644 | 648 | }, |
| 645 | 649 | { "span.wikiruleHead", |
| 646 | 650 | "format for leading text in wikirules definitions", |
| 647 | 651 | @ font-weight: bold; |
| 648 | 652 | }, |
| @@ -688,10 +692,46 @@ | ||
| 688 | 692 | @ # to a standard jscolor definition with java script in the footer. |
| 689 | 693 | }, |
| 690 | 694 | { "div.endContent", |
| 691 | 695 | "format for end of content area, to be used to clear page flow(sidebox on branch,..", |
| 692 | 696 | @ clear: both; |
| 697 | + }, | |
| 698 | + { "p.generalError", | |
| 699 | + "format for general errors", | |
| 700 | + @ color: red; | |
| 701 | + }, | |
| 702 | + { "p.tktsetupError", | |
| 703 | + "format for tktsetup errors", | |
| 704 | + @ color: red; | |
| 705 | + @ font-weight: bold; | |
| 706 | + }, | |
| 707 | + { "p.thmainError", | |
| 708 | + "format for th script errors", | |
| 709 | + @ color: red; | |
| 710 | + @ font-weight: bold; | |
| 711 | + }, | |
| 712 | + { "span.thTrace", | |
| 713 | + "format for th script trace messages", | |
| 714 | + @ color: red; | |
| 715 | + }, | |
| 716 | + { "p:reportError", | |
| 717 | + "format for report configuration errors", | |
| 718 | + @ color: red; | |
| 719 | + @ font-weight: bold; | |
| 720 | + }, | |
| 721 | + { "blockquote.reportError", | |
| 722 | + "format for report configuration errors", | |
| 723 | + @ color: red; | |
| 724 | + @ font-weight: bold; | |
| 725 | + }, | |
| 726 | + { "p.noMoreShun", | |
| 727 | + "format for artifact lines, no longer shunned", | |
| 728 | + @ color: blue; | |
| 729 | + }, | |
| 730 | + { "p.shunned", | |
| 731 | + "format for artifact lines beeing shunned", | |
| 732 | + @ color: blue; | |
| 693 | 733 | }, |
| 694 | 734 | { 0, |
| 695 | 735 | 0, |
| 696 | 736 | 0 |
| 697 | 737 | } |
| 698 | 738 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -159,13 +159,13 @@ | |
| 159 | Th_Render(zFooter); |
| 160 | if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1); |
| 161 | |
| 162 | /* Render trace log if TH1 tracing is enabled. */ |
| 163 | if( g.thTrace ){ |
| 164 | cgi_append_content("<font color=\"red\"><hr />\n", -1); |
| 165 | cgi_append_content(blob_str(&g.thLog), blob_size(&g.thLog)); |
| 166 | cgi_append_content("</font>\n", -1); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | /* |
| 171 | ** Begin a side-box on the right-hand side of a page. The title and |
| @@ -531,13 +531,13 @@ | |
| 531 | }, |
| 532 | { "table.captcha", |
| 533 | "format for the layout table, used for the captcha display", |
| 534 | @ margin: auto; |
| 535 | @ padding: 10px; |
| 536 | @ border-width: 1; |
| 537 | @ border-style: double; |
| 538 | @ bordor-color: black; |
| 539 | }, |
| 540 | { "td.login_out_label", |
| 541 | "format for the label cells in the login/out table", |
| 542 | @ text-align: center; |
| 543 | }, |
| @@ -639,10 +639,14 @@ | |
| 639 | @ content:"'"; |
| 640 | }, |
| 641 | { "span.usertype:after", |
| 642 | "trailing text for user types, mentioned on the user edit page", |
| 643 | @ content:"'"; |
| 644 | }, |
| 645 | { "span.wikiruleHead", |
| 646 | "format for leading text in wikirules definitions", |
| 647 | @ font-weight: bold; |
| 648 | }, |
| @@ -688,10 +692,46 @@ | |
| 688 | @ # to a standard jscolor definition with java script in the footer. |
| 689 | }, |
| 690 | { "div.endContent", |
| 691 | "format for end of content area, to be used to clear page flow(sidebox on branch,..", |
| 692 | @ clear: both; |
| 693 | }, |
| 694 | { 0, |
| 695 | 0, |
| 696 | 0 |
| 697 | } |
| 698 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -159,13 +159,13 @@ | |
| 159 | Th_Render(zFooter); |
| 160 | if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1); |
| 161 | |
| 162 | /* Render trace log if TH1 tracing is enabled. */ |
| 163 | if( g.thTrace ){ |
| 164 | cgi_append_content("<span class=\"thTrace\"><hr />\n", -1); |
| 165 | cgi_append_content(blob_str(&g.thLog), blob_size(&g.thLog)); |
| 166 | cgi_append_content("</span>\n", -1); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | /* |
| 171 | ** Begin a side-box on the right-hand side of a page. The title and |
| @@ -531,13 +531,13 @@ | |
| 531 | }, |
| 532 | { "table.captcha", |
| 533 | "format for the layout table, used for the captcha display", |
| 534 | @ margin: auto; |
| 535 | @ padding: 10px; |
| 536 | @ border-width: 4px; |
| 537 | @ border-style: double; |
| 538 | @ border-color: black; |
| 539 | }, |
| 540 | { "td.login_out_label", |
| 541 | "format for the label cells in the login/out table", |
| 542 | @ text-align: center; |
| 543 | }, |
| @@ -639,10 +639,14 @@ | |
| 639 | @ content:"'"; |
| 640 | }, |
| 641 | { "span.usertype:after", |
| 642 | "trailing text for user types, mentioned on the user edit page", |
| 643 | @ content:"'"; |
| 644 | }, |
| 645 | { "p.missingPriv", |
| 646 | "format for missing priviliges note on user setup page", |
| 647 | @ color: blue; |
| 648 | }, |
| 649 | { "span.wikiruleHead", |
| 650 | "format for leading text in wikirules definitions", |
| 651 | @ font-weight: bold; |
| 652 | }, |
| @@ -688,10 +692,46 @@ | |
| 692 | @ # to a standard jscolor definition with java script in the footer. |
| 693 | }, |
| 694 | { "div.endContent", |
| 695 | "format for end of content area, to be used to clear page flow(sidebox on branch,..", |
| 696 | @ clear: both; |
| 697 | }, |
| 698 | { "p.generalError", |
| 699 | "format for general errors", |
| 700 | @ color: red; |
| 701 | }, |
| 702 | { "p.tktsetupError", |
| 703 | "format for tktsetup errors", |
| 704 | @ color: red; |
| 705 | @ font-weight: bold; |
| 706 | }, |
| 707 | { "p.thmainError", |
| 708 | "format for th script errors", |
| 709 | @ color: red; |
| 710 | @ font-weight: bold; |
| 711 | }, |
| 712 | { "span.thTrace", |
| 713 | "format for th script trace messages", |
| 714 | @ color: red; |
| 715 | }, |
| 716 | { "p:reportError", |
| 717 | "format for report configuration errors", |
| 718 | @ color: red; |
| 719 | @ font-weight: bold; |
| 720 | }, |
| 721 | { "blockquote.reportError", |
| 722 | "format for report configuration errors", |
| 723 | @ color: red; |
| 724 | @ font-weight: bold; |
| 725 | }, |
| 726 | { "p.noMoreShun", |
| 727 | "format for artifact lines, no longer shunned", |
| 728 | @ color: blue; |
| 729 | }, |
| 730 | { "p.shunned", |
| 731 | "format for artifact lines beeing shunned", |
| 732 | @ color: blue; |
| 733 | }, |
| 734 | { 0, |
| 735 | 0, |
| 736 | 0 |
| 737 | } |
| 738 |
+2
-2
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -504,14 +504,14 @@ | ||
| 504 | 504 | }else{ |
| 505 | 505 | i++; |
| 506 | 506 | } |
| 507 | 507 | } |
| 508 | 508 | if( rc==TH_ERROR ){ |
| 509 | - sendText("<hr><p><font color=\"red\"><b>ERROR: ", -1, 0); | |
| 509 | + sendText("<hr><p class=\"thmainError\">ERROR: ", -1, 0); | |
| 510 | 510 | zResult = (char*)Th_GetResult(g.interp, &n); |
| 511 | 511 | sendText((char*)zResult, n, 1); |
| 512 | - sendText("</b></font></p>", -1, 0); | |
| 512 | + sendText("</p>", -1, 0); | |
| 513 | 513 | }else{ |
| 514 | 514 | sendText(z, i, 0); |
| 515 | 515 | } |
| 516 | 516 | return rc; |
| 517 | 517 | } |
| 518 | 518 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -504,14 +504,14 @@ | |
| 504 | }else{ |
| 505 | i++; |
| 506 | } |
| 507 | } |
| 508 | if( rc==TH_ERROR ){ |
| 509 | sendText("<hr><p><font color=\"red\"><b>ERROR: ", -1, 0); |
| 510 | zResult = (char*)Th_GetResult(g.interp, &n); |
| 511 | sendText((char*)zResult, n, 1); |
| 512 | sendText("</b></font></p>", -1, 0); |
| 513 | }else{ |
| 514 | sendText(z, i, 0); |
| 515 | } |
| 516 | return rc; |
| 517 | } |
| 518 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -504,14 +504,14 @@ | |
| 504 | }else{ |
| 505 | i++; |
| 506 | } |
| 507 | } |
| 508 | if( rc==TH_ERROR ){ |
| 509 | sendText("<hr><p class=\"thmainError\">ERROR: ", -1, 0); |
| 510 | zResult = (char*)Th_GetResult(g.interp, &n); |
| 511 | sendText((char*)zResult, n, 1); |
| 512 | sendText("</p>", -1, 0); |
| 513 | }else{ |
| 514 | sendText(z, i, 0); |
| 515 | } |
| 516 | return rc; |
| 517 | } |
| 518 |
+1
-1
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -123,11 +123,11 @@ | ||
| 123 | 123 | z = zDfltValue; |
| 124 | 124 | }else if( isSubmit ){ |
| 125 | 125 | char *zErr = 0; |
| 126 | 126 | login_verify_csrf_secret(); |
| 127 | 127 | if( xText && (zErr = xText(z))!=0 ){ |
| 128 | - @ <p><font color="red"><b>ERROR: %h(zErr)</b></font></p> | |
| 128 | + @ <p class="tktsetupError"><b>ERROR: %h(zErr)</b></p> | |
| 129 | 129 | }else{ |
| 130 | 130 | db_set(zDbField, z, 0); |
| 131 | 131 | if( xRebuild ) xRebuild(); |
| 132 | 132 | cgi_redirect("tktsetup"); |
| 133 | 133 | } |
| 134 | 134 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -123,11 +123,11 @@ | |
| 123 | z = zDfltValue; |
| 124 | }else if( isSubmit ){ |
| 125 | char *zErr = 0; |
| 126 | login_verify_csrf_secret(); |
| 127 | if( xText && (zErr = xText(z))!=0 ){ |
| 128 | @ <p><font color="red"><b>ERROR: %h(zErr)</b></font></p> |
| 129 | }else{ |
| 130 | db_set(zDbField, z, 0); |
| 131 | if( xRebuild ) xRebuild(); |
| 132 | cgi_redirect("tktsetup"); |
| 133 | } |
| 134 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -123,11 +123,11 @@ | |
| 123 | z = zDfltValue; |
| 124 | }else if( isSubmit ){ |
| 125 | char *zErr = 0; |
| 126 | login_verify_csrf_secret(); |
| 127 | if( xText && (zErr = xText(z))!=0 ){ |
| 128 | @ <p class="tktsetupError"><b>ERROR: %h(zErr)</b></p> |
| 129 | }else{ |
| 130 | db_set(zDbField, z, 0); |
| 131 | if( xRebuild ) xRebuild(); |
| 132 | cgi_redirect("tktsetup"); |
| 133 | } |
| 134 |