Fossil

Check-in [6cf335ab]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:tag.c css skinned
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | wolfgangFormat2CSS
Files: files | file ages | folders
SHA1:6cf335ab0df7eb885139db0e34439ac5941386d5
User & Date: wolfgang 2010-09-09 20:27:02
Context
2010-09-09
21:32
reduce html-validator errors on leaves page check-in: 4dbfba2b user: wolfgang tags: wolfgangFormat2CSS
20:27
tag.c css skinned check-in: 6cf335ab user: wolfgang tags: wolfgangFormat2CSS
20:12
timeline css skinned check-in: dc8a247e user: wolfgang tags: wolfgangFormat2CSS
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/style.c.

459
460
461
462
463
464
465













466
467
468
469
470
471
472
...
473
474
475
476
477
478
479


480
481
482
483
484
485
486
...
490
491
492
493
494
495
496
497


498
499
500
501
502
503
504
;
const char zSpanTimelineHistDsp[] =
@ /* the format for the timeline version display(no history permission!) */
@ span.timelineHistDsp {
@   font-weight: bold;
@ }
@













;
typedef enum cssDefaultItems {
  cssOthers = 0,
  tableLabelValue,
  divSidebox,
  divSideboxTitle,
  divSideboxDescribed,
................................................................................
  spanDisabled,
  spanTimelineSuppressed,
  tableTimelineTable,
  tdTimelineTableCell,
  spanTimelineLeaf,
  aTimelineHistLink,
  spanTimelineHistDsp,


  cssDefaultCount
};
const struct strctCssDefaults {
  char const * const name;
  char const * const value;
} cssDefaultList[cssDefaultCount] = {
  { "",                      zDefaultCSS             },
................................................................................
  { "div.sideboxDescribed",  zDivSideboxDescribed    },
  { "span.disabled",         zSpanDisabled           },
  { "span.timelineDisabled", zSpanTimelineSuppressed },
  { "table.timelineTable",   zTableTimelineTable     },
  { "td.timelineTableCell",  zTdTimelineTableCell    },
  { "span.timelineLeaf",     zSpanTimelineLeaf       },
  { "a.timelineHistLink",    zATimelineHistLink      },
  { "span.timelineHistDsp",  zSpanTimelineHistDsp    }


};

void cgi_append_default_css(void) {
  enum cssDefaultItems i;

  for (i=cssOthers;i<cssDefaultCount;i++)
    cgi_printf(cssDefaultList[i].value);







>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>







 







|
>
>







459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
...
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
...
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
;
const char zSpanTimelineHistDsp[] =
@ /* the format for the timeline version display(no history permission!) */
@ span.timelineHistDsp {
@   font-weight: bold;
@ }
@
;
const char zATagLink[] =
@ /* the format for the tag links */
@ a.tagLink {
@ }
@
;
const char zSpanTagDsp[] =
@ /* the format for the tag display(no history permission!) */
@ span.tagDsp {
@   font-weight: bold;
@ }
@
;
typedef enum cssDefaultItems {
  cssOthers = 0,
  tableLabelValue,
  divSidebox,
  divSideboxTitle,
  divSideboxDescribed,
................................................................................
  spanDisabled,
  spanTimelineSuppressed,
  tableTimelineTable,
  tdTimelineTableCell,
  spanTimelineLeaf,
  aTimelineHistLink,
  spanTimelineHistDsp,
  aTagLink,
  spanTagDsp,
  cssDefaultCount
};
const struct strctCssDefaults {
  char const * const name;
  char const * const value;
} cssDefaultList[cssDefaultCount] = {
  { "",                      zDefaultCSS             },
................................................................................
  { "div.sideboxDescribed",  zDivSideboxDescribed    },
  { "span.disabled",         zSpanDisabled           },
  { "span.timelineDisabled", zSpanTimelineSuppressed },
  { "table.timelineTable",   zTableTimelineTable     },
  { "td.timelineTableCell",  zTdTimelineTableCell    },
  { "span.timelineLeaf",     zSpanTimelineLeaf       },
  { "a.timelineHistLink",    zATimelineHistLink      },
  { "span.timelineHistDsp",  zSpanTimelineHistDsp    },
  { "a.tagLink",             zATagLink               },
  { "span.tagDsp",           zSpanTagDsp             }
};

void cgi_append_default_css(void) {
  enum cssDefaultItems i;

  for (i=cssOthers;i<cssDefaultCount;i++)
    cgi_printf(cssDefaultList[i].value);

Changes to src/tag.c.

512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
...
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
    " AND tagname GLOB 'sym-*'"
    " ORDER BY tagname"
  );
  @ <ul>
  while( db_step(&q)==SQLITE_ROW ){
    const char *zName = db_column_text(&q, 0);
    if( g.okHistory ){
      @ <li><a href=%s(g.zBaseURL)/timeline?t=%T(zName)>%h(zName)</a></li>
    }else{
      @ <li><strong>%h(zName)</strong></li>
    }
  }
  @ </ul>
  db_finalize(&q);
  style_footer();
}

................................................................................
    "   AND tagxref.tagtype>0 AND tagxref.srcid>0"
    "   AND tag.tagname GLOB 'sym-*'",
    rid
  );
  while( db_step(&q)==SQLITE_ROW ){
    const char *zTagName = db_column_text(&q, 0);
    if( g.okHistory ){
      @ <a href="%s(g.zBaseURL)/timeline?t=%T(zTagName)">[%h(zTagName)]</a>
    }else{
      @ <b>[%h(zTagName)]</b>
    }
  }
  db_finalize(&q);
}

/*
** WEBPAGE: /tagtimeline







|

|







 







|

|







512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
...
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
    " AND tagname GLOB 'sym-*'"
    " ORDER BY tagname"
  );
  @ <ul>
  while( db_step(&q)==SQLITE_ROW ){
    const char *zName = db_column_text(&q, 0);
    if( g.okHistory ){
      @ <li><a class="tagLink" href=%s(g.zBaseURL)/timeline?t=%T(zName)>%h(zName)</a></li>
    }else{
      @ <li><span class="tagDsp">%h(zName)</span></li>
    }
  }
  @ </ul>
  db_finalize(&q);
  style_footer();
}

................................................................................
    "   AND tagxref.tagtype>0 AND tagxref.srcid>0"
    "   AND tag.tagname GLOB 'sym-*'",
    rid
  );
  while( db_step(&q)==SQLITE_ROW ){
    const char *zTagName = db_column_text(&q, 0);
    if( g.okHistory ){
      @ <a class="tagLink" href="%s(g.zBaseURL)/timeline?t=%T(zTagName)">[%h(zTagName)]</a>
    }else{
      @ <span class="tagDsp">[%h(zTagName)]</span>
    }
  }
  db_finalize(&q);
}

/*
** WEBPAGE: /tagtimeline