Fossil SCM
tag.c css skinned
Commit
6cf335ab0df7eb885139db0e34439ac5941386d5
Parent
dc8a247e749f180…
2 files changed
+18
-1
+4
-4
+18
-1
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -461,10 +461,23 @@ | ||
| 461 | 461 | @ /* the format for the timeline version display(no history permission!) */ |
| 462 | 462 | @ span.timelineHistDsp { |
| 463 | 463 | @ font-weight: bold; |
| 464 | 464 | @ } |
| 465 | 465 | @ |
| 466 | +; | |
| 467 | +const char zATagLink[] = | |
| 468 | +@ /* the format for the tag links */ | |
| 469 | +@ a.tagLink { | |
| 470 | +@ } | |
| 471 | +@ | |
| 472 | +; | |
| 473 | +const char zSpanTagDsp[] = | |
| 474 | +@ /* the format for the tag display(no history permission!) */ | |
| 475 | +@ span.tagDsp { | |
| 476 | +@ font-weight: bold; | |
| 477 | +@ } | |
| 478 | +@ | |
| 466 | 479 | ; |
| 467 | 480 | typedef enum cssDefaultItems { |
| 468 | 481 | cssOthers = 0, |
| 469 | 482 | tableLabelValue, |
| 470 | 483 | divSidebox, |
| @@ -475,10 +488,12 @@ | ||
| 475 | 488 | tableTimelineTable, |
| 476 | 489 | tdTimelineTableCell, |
| 477 | 490 | spanTimelineLeaf, |
| 478 | 491 | aTimelineHistLink, |
| 479 | 492 | spanTimelineHistDsp, |
| 493 | + aTagLink, | |
| 494 | + spanTagDsp, | |
| 480 | 495 | cssDefaultCount |
| 481 | 496 | }; |
| 482 | 497 | const struct strctCssDefaults { |
| 483 | 498 | char const * const name; |
| 484 | 499 | char const * const value; |
| @@ -492,11 +507,13 @@ | ||
| 492 | 507 | { "span.timelineDisabled", zSpanTimelineSuppressed }, |
| 493 | 508 | { "table.timelineTable", zTableTimelineTable }, |
| 494 | 509 | { "td.timelineTableCell", zTdTimelineTableCell }, |
| 495 | 510 | { "span.timelineLeaf", zSpanTimelineLeaf }, |
| 496 | 511 | { "a.timelineHistLink", zATimelineHistLink }, |
| 497 | - { "span.timelineHistDsp", zSpanTimelineHistDsp } | |
| 512 | + { "span.timelineHistDsp", zSpanTimelineHistDsp }, | |
| 513 | + { "a.tagLink", zATagLink }, | |
| 514 | + { "span.tagDsp", zSpanTagDsp } | |
| 498 | 515 | }; |
| 499 | 516 | |
| 500 | 517 | void cgi_append_default_css(void) { |
| 501 | 518 | enum cssDefaultItems i; |
| 502 | 519 | |
| 503 | 520 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -461,10 +461,23 @@ | |
| 461 | @ /* the format for the timeline version display(no history permission!) */ |
| 462 | @ span.timelineHistDsp { |
| 463 | @ font-weight: bold; |
| 464 | @ } |
| 465 | @ |
| 466 | ; |
| 467 | typedef enum cssDefaultItems { |
| 468 | cssOthers = 0, |
| 469 | tableLabelValue, |
| 470 | divSidebox, |
| @@ -475,10 +488,12 @@ | |
| 475 | tableTimelineTable, |
| 476 | tdTimelineTableCell, |
| 477 | spanTimelineLeaf, |
| 478 | aTimelineHistLink, |
| 479 | spanTimelineHistDsp, |
| 480 | cssDefaultCount |
| 481 | }; |
| 482 | const struct strctCssDefaults { |
| 483 | char const * const name; |
| 484 | char const * const value; |
| @@ -492,11 +507,13 @@ | |
| 492 | { "span.timelineDisabled", zSpanTimelineSuppressed }, |
| 493 | { "table.timelineTable", zTableTimelineTable }, |
| 494 | { "td.timelineTableCell", zTdTimelineTableCell }, |
| 495 | { "span.timelineLeaf", zSpanTimelineLeaf }, |
| 496 | { "a.timelineHistLink", zATimelineHistLink }, |
| 497 | { "span.timelineHistDsp", zSpanTimelineHistDsp } |
| 498 | }; |
| 499 | |
| 500 | void cgi_append_default_css(void) { |
| 501 | enum cssDefaultItems i; |
| 502 | |
| 503 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -461,10 +461,23 @@ | |
| 461 | @ /* the format for the timeline version display(no history permission!) */ |
| 462 | @ span.timelineHistDsp { |
| 463 | @ font-weight: bold; |
| 464 | @ } |
| 465 | @ |
| 466 | ; |
| 467 | const char zATagLink[] = |
| 468 | @ /* the format for the tag links */ |
| 469 | @ a.tagLink { |
| 470 | @ } |
| 471 | @ |
| 472 | ; |
| 473 | const char zSpanTagDsp[] = |
| 474 | @ /* the format for the tag display(no history permission!) */ |
| 475 | @ span.tagDsp { |
| 476 | @ font-weight: bold; |
| 477 | @ } |
| 478 | @ |
| 479 | ; |
| 480 | typedef enum cssDefaultItems { |
| 481 | cssOthers = 0, |
| 482 | tableLabelValue, |
| 483 | divSidebox, |
| @@ -475,10 +488,12 @@ | |
| 488 | tableTimelineTable, |
| 489 | tdTimelineTableCell, |
| 490 | spanTimelineLeaf, |
| 491 | aTimelineHistLink, |
| 492 | spanTimelineHistDsp, |
| 493 | aTagLink, |
| 494 | spanTagDsp, |
| 495 | cssDefaultCount |
| 496 | }; |
| 497 | const struct strctCssDefaults { |
| 498 | char const * const name; |
| 499 | char const * const value; |
| @@ -492,11 +507,13 @@ | |
| 507 | { "span.timelineDisabled", zSpanTimelineSuppressed }, |
| 508 | { "table.timelineTable", zTableTimelineTable }, |
| 509 | { "td.timelineTableCell", zTdTimelineTableCell }, |
| 510 | { "span.timelineLeaf", zSpanTimelineLeaf }, |
| 511 | { "a.timelineHistLink", zATimelineHistLink }, |
| 512 | { "span.timelineHistDsp", zSpanTimelineHistDsp }, |
| 513 | { "a.tagLink", zATagLink }, |
| 514 | { "span.tagDsp", zSpanTagDsp } |
| 515 | }; |
| 516 | |
| 517 | void cgi_append_default_css(void) { |
| 518 | enum cssDefaultItems i; |
| 519 | |
| 520 |
+4
-4
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -514,13 +514,13 @@ | ||
| 514 | 514 | ); |
| 515 | 515 | @ <ul> |
| 516 | 516 | while( db_step(&q)==SQLITE_ROW ){ |
| 517 | 517 | const char *zName = db_column_text(&q, 0); |
| 518 | 518 | if( g.okHistory ){ |
| 519 | - @ <li><a href=%s(g.zBaseURL)/timeline?t=%T(zName)>%h(zName)</a></li> | |
| 519 | + @ <li><a class="tagLink" href=%s(g.zBaseURL)/timeline?t=%T(zName)>%h(zName)</a></li> | |
| 520 | 520 | }else{ |
| 521 | - @ <li><strong>%h(zName)</strong></li> | |
| 521 | + @ <li><span class="tagDsp">%h(zName)</span></li> | |
| 522 | 522 | } |
| 523 | 523 | } |
| 524 | 524 | @ </ul> |
| 525 | 525 | db_finalize(&q); |
| 526 | 526 | style_footer(); |
| @@ -542,13 +542,13 @@ | ||
| 542 | 542 | rid |
| 543 | 543 | ); |
| 544 | 544 | while( db_step(&q)==SQLITE_ROW ){ |
| 545 | 545 | const char *zTagName = db_column_text(&q, 0); |
| 546 | 546 | if( g.okHistory ){ |
| 547 | - @ <a href="%s(g.zBaseURL)/timeline?t=%T(zTagName)">[%h(zTagName)]</a> | |
| 547 | + @ <a class="tagLink" href="%s(g.zBaseURL)/timeline?t=%T(zTagName)">[%h(zTagName)]</a> | |
| 548 | 548 | }else{ |
| 549 | - @ <b>[%h(zTagName)]</b> | |
| 549 | + @ <span class="tagDsp">[%h(zTagName)]</span> | |
| 550 | 550 | } |
| 551 | 551 | } |
| 552 | 552 | db_finalize(&q); |
| 553 | 553 | } |
| 554 | 554 | |
| 555 | 555 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -514,13 +514,13 @@ | |
| 514 | ); |
| 515 | @ <ul> |
| 516 | while( db_step(&q)==SQLITE_ROW ){ |
| 517 | const char *zName = db_column_text(&q, 0); |
| 518 | if( g.okHistory ){ |
| 519 | @ <li><a href=%s(g.zBaseURL)/timeline?t=%T(zName)>%h(zName)</a></li> |
| 520 | }else{ |
| 521 | @ <li><strong>%h(zName)</strong></li> |
| 522 | } |
| 523 | } |
| 524 | @ </ul> |
| 525 | db_finalize(&q); |
| 526 | style_footer(); |
| @@ -542,13 +542,13 @@ | |
| 542 | rid |
| 543 | ); |
| 544 | while( db_step(&q)==SQLITE_ROW ){ |
| 545 | const char *zTagName = db_column_text(&q, 0); |
| 546 | if( g.okHistory ){ |
| 547 | @ <a href="%s(g.zBaseURL)/timeline?t=%T(zTagName)">[%h(zTagName)]</a> |
| 548 | }else{ |
| 549 | @ <b>[%h(zTagName)]</b> |
| 550 | } |
| 551 | } |
| 552 | db_finalize(&q); |
| 553 | } |
| 554 | |
| 555 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -514,13 +514,13 @@ | |
| 514 | ); |
| 515 | @ <ul> |
| 516 | while( db_step(&q)==SQLITE_ROW ){ |
| 517 | const char *zName = db_column_text(&q, 0); |
| 518 | if( g.okHistory ){ |
| 519 | @ <li><a class="tagLink" href=%s(g.zBaseURL)/timeline?t=%T(zName)>%h(zName)</a></li> |
| 520 | }else{ |
| 521 | @ <li><span class="tagDsp">%h(zName)</span></li> |
| 522 | } |
| 523 | } |
| 524 | @ </ul> |
| 525 | db_finalize(&q); |
| 526 | style_footer(); |
| @@ -542,13 +542,13 @@ | |
| 542 | rid |
| 543 | ); |
| 544 | while( db_step(&q)==SQLITE_ROW ){ |
| 545 | const char *zTagName = db_column_text(&q, 0); |
| 546 | if( g.okHistory ){ |
| 547 | @ <a class="tagLink" href="%s(g.zBaseURL)/timeline?t=%T(zTagName)">[%h(zTagName)]</a> |
| 548 | }else{ |
| 549 | @ <span class="tagDsp">[%h(zTagName)]</span> |
| 550 | } |
| 551 | } |
| 552 | db_finalize(&q); |
| 553 | } |
| 554 | |
| 555 |