Fossil SCM

tag.c css skinned

wolfgang 2010-09-09 20:27 wolfgangFormat2CSS
Commit 6cf335ab0df7eb885139db0e34439ac5941386d5
2 files changed +18 -1 +4 -4
+18 -1
--- src/style.c
+++ src/style.c
@@ -461,10 +461,23 @@
461461
@ /* the format for the timeline version display(no history permission!) */
462462
@ span.timelineHistDsp {
463463
@ font-weight: bold;
464464
@ }
465465
@
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
+@
466479
;
467480
typedef enum cssDefaultItems {
468481
cssOthers = 0,
469482
tableLabelValue,
470483
divSidebox,
@@ -475,10 +488,12 @@
475488
tableTimelineTable,
476489
tdTimelineTableCell,
477490
spanTimelineLeaf,
478491
aTimelineHistLink,
479492
spanTimelineHistDsp,
493
+ aTagLink,
494
+ spanTagDsp,
480495
cssDefaultCount
481496
};
482497
const struct strctCssDefaults {
483498
char const * const name;
484499
char const * const value;
@@ -492,11 +507,13 @@
492507
{ "span.timelineDisabled", zSpanTimelineSuppressed },
493508
{ "table.timelineTable", zTableTimelineTable },
494509
{ "td.timelineTableCell", zTdTimelineTableCell },
495510
{ "span.timelineLeaf", zSpanTimelineLeaf },
496511
{ "a.timelineHistLink", zATimelineHistLink },
497
- { "span.timelineHistDsp", zSpanTimelineHistDsp }
512
+ { "span.timelineHistDsp", zSpanTimelineHistDsp },
513
+ { "a.tagLink", zATagLink },
514
+ { "span.tagDsp", zSpanTagDsp }
498515
};
499516
500517
void cgi_append_default_css(void) {
501518
enum cssDefaultItems i;
502519
503520
--- 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 @@
514514
);
515515
@ <ul>
516516
while( db_step(&q)==SQLITE_ROW ){
517517
const char *zName = db_column_text(&q, 0);
518518
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>
520520
}else{
521
- @ <li><strong>%h(zName)</strong></li>
521
+ @ <li><span class="tagDsp">%h(zName)</span></li>
522522
}
523523
}
524524
@ </ul>
525525
db_finalize(&q);
526526
style_footer();
@@ -542,13 +542,13 @@
542542
rid
543543
);
544544
while( db_step(&q)==SQLITE_ROW ){
545545
const char *zTagName = db_column_text(&q, 0);
546546
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>
548548
}else{
549
- @ <b>[%h(zTagName)]</b>
549
+ @ <span class="tagDsp">[%h(zTagName)]</span>
550550
}
551551
}
552552
db_finalize(&q);
553553
}
554554
555555
--- 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

Keyboard Shortcuts

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