Index: src/branch.c ================================================================== --- src/branch.c +++ src/branch.c @@ -229,11 +229,12 @@ }else{ style_submenu_element("Closed","Closed","brlist?closed"); } login_anonymous_available(); compute_leaves(0, 1); - style_sidebox_begin("Nomenclature:", "33%"); + @
Many hyperlinks are disabled.
+ @
Many hyperlinks are disabled.
@ Use anonymous login
@ to enable hyperlinks.
style_footer(); db_end_transaction(0); } Index: src/style.c ================================================================== --- src/style.c +++ src/style.c @@ -337,10 +337,11 @@ @ padding: 1px 1px 1px 1px; @ font-size: 1.2em; @ font-weight: bold; @ background-color: #558195; @ color: white; +@ white-space: nowrap; @ } @ @ /* The "Date" that occurs on the left hand side of timelines */ @ div.divider { @ background: #a1c4d4; @@ -379,10 +380,62 @@ @ vertical-align: top; @ text-align: right; @ padding: 0.2ex 2ex; @ } ; +const char zTdTimelineTable[] = +@ /* The time column in timeline tables */ +@ table.timelineTable { +@ cellspacing: 0; +@ border: 0; +@ cellpadding: 0; +@} +; +const char zTdTimelineTimeStampCell[] = +@ /* The time column in timeline tables */ +@ td.timelineTimeStampCell { +@ valign: top; +@ text-align: right; +@} +; +const char zTdTimelineOmitted[] = +@ /* The omitted line in timeline tables */ +@ td.timelineOmitted { +@ font-size: small; +@ font-style: italic; +@ } +; +const char zTdTimelineComment[] = +@ /* The comment cell in timeline tables */ +@ td.timelineComment { +@ valign: top; +@ text-align: left; +@ } +; +const char zDivTimelineLeafDsp[] = +@ /* The leaf description in timeline tables */ +@ div.timelineLeafDsp { +@ font-weight: bold; +@ display: inline; +@ } +; +const char zDivNomenclatureSidebox[] = +@ /* The nomenclature sidebox for branches,.. */ +@ div.nomenclatureSidebox { +@ float: right; +@ width: 33%; +@ border-width: medium; +@ border-style: double; +@ margin: 10; +@ } +; +const char zSpanDisabledLinks[] = +@ /* hyperlinks disabled text */ +@ span.disabledLinks { +@ color: red; +@ } +; /* ** WEBPAGE: style.css */ void page_style_css(void){ @@ -389,10 +442,26 @@ char *zCSS = 0; cgi_set_content_type("text/css"); zCSS = db_get("css",(char*)zDefaultCSS); cgi_append_content(zCSS, -1); + cgi_append_content("\n", -1); + /* append internal classes, if not already in style sheet */ + if (!strstr(zCSS,"timelineTable")) + cgi_append_content(zTdTimelineTable,-1); + if (!strstr(zCSS,"timelineTimeStampCell")) + cgi_append_content(zTdTimelineTimeStampCell,-1); + if (!strstr(zCSS,"timelineOmitted")) + cgi_append_content(zTdTimelineOmitted,-1); + if (!strstr(zCSS,"timelineComment")) + cgi_append_content(zTdTimelineComment,-1); + if (!strstr(zCSS,"timelineLeafDsp")) + cgi_append_content(zDivTimelineLeafDsp,-1); + if (!strstr(zCSS,"nomenclatureSidebox")) + cgi_append_content(zDivNomenclatureSidebox,-1); + if (!strstr(zCSS,"disabledLinks")) + cgi_append_content(zSpanDisabledLinks,-1); g.isConst = 1; } /* ** WEBPAGE: test_env Index: src/timeline.c ================================================================== --- src/timeline.c +++ src/timeline.c @@ -192,11 +192,11 @@ if( tmFlags & TIMELINE_GRAPH ){ pGraph = graph_init(); @ } - @@ %h(zDefaultCSS) + @ /* internal page layout */ + @ %h(zTdTimelineTable) + @ %h(zTdTimelineTimeStampCell) + @ %h(zTdTimelineOmitted) + @ %h(zTdTimelineComment) + @ %h(zDivTimelineLeafDsp) + @ %h(zDivNomenclatureSidebox) + @ %h(zSpanDisabledLinks) @
| - @ ... %d(suppressCnt) similar - @ event%s(suppressCnt>1?"s":"") omitted. | ||||||
| + @ ... %d(suppressCnt) similar event%s(suppressCnt>1?"s":"") omitted. + @ | ||||||
|
- @ %s(zPrevDate)
@ | ||||||
| %s(zTime) | + @%s(zTime) | @if( pGraph && zType[0]=='c' ){ int nParent = 0; int aParent[32]; const char *zBr; @@ -268,23 +268,23 @@ gidx = graph_add_row(pGraph, rid, nParent, aParent, zBr, zBgClr); db_reset(&qbranch); @ } if( zBgClr && zBgClr[0] ){ - @ | + @ | }else{ - @ | + @ |
}
if( zType[0]=='c' ){
hyperlink_to_uuid(zUuid);
if( isLeaf ){
if( db_exists("SELECT 1 FROM tagxref"
" WHERE rid=%d AND tagid=%d AND tagtype>0",
rid, TAG_CLOSED) ){
- @ Closed-Leaf:
+ @ Closed-Leaf:
}else{
- @ Leaf:
+ @ Leaf:
}
}
}else if( (tmFlags & TIMELINE_ARTID)!=0 ){
hyperlink_to_uuid(zUuid);
}
@@ -310,12 +310,13 @@
}
@ |
| - @ ... %d(suppressCnt) similar - @ event%s(suppressCnt>1?"s":"") omitted. | ||||||
| + @ ... %d(suppressCnt) similar event%s(suppressCnt>1?"s":"") omitted. + @ | ||||||