| | @@ -48,13 +48,13 @@ |
| 48 | 48 | */ |
| 49 | 49 | void hyperlink_to_uuid(const char *zUuid){ |
| 50 | 50 | char zShortUuid[UUID_SIZE+1]; |
| 51 | 51 | shorten_uuid(zShortUuid, zUuid); |
| 52 | 52 | if( g.okHistory ){ |
| 53 | | - @ <a href="%s(g.zBaseURL)/info/%s(zShortUuid)">[%s(zShortUuid)]</a> |
| 53 | + @ <a class="timelineHistLink" href="%s(g.zBaseURL)/info/%s(zShortUuid)">[%s(zShortUuid)]</a> |
| 54 | 54 | }else{ |
| 55 | | - @ <b>[%s(zShortUuid)]</b> |
| 55 | + @ <span class="timelineHistDsp">[%s(zShortUuid)]</span> |
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /* |
| 60 | 60 | ** Generate a hyperlink that invokes javascript to highlight |
| | @@ -189,14 +189,17 @@ |
| 189 | 189 | }else{ |
| 190 | 190 | wikiFlags = WIKI_INLINE | WIKI_NOBLOCK; |
| 191 | 191 | } |
| 192 | 192 | if( tmFlags & TIMELINE_GRAPH ){ |
| 193 | 193 | pGraph = graph_init(); |
| 194 | + /* style is not moved to css, because this is |
| 195 | + ** a technical div for the timeline graph |
| 196 | + */ |
| 194 | 197 | @ <div id="canvas" style="position:relative;width:1px;height:1px;"></div> |
| 195 | 198 | } |
| 196 | 199 | |
| 197 | | - @ <table cellspacing=0 border=0 cellpadding=0> |
| 200 | + @ <table class="timelineTable"> |
| 198 | 201 | blob_zero(&comment); |
| 199 | 202 | while( db_step(pQuery)==SQLITE_ROW ){ |
| 200 | 203 | int rid = db_column_int(pQuery, 0); |
| 201 | 204 | const char *zUuid = db_column_text(pQuery, 1); |
| 202 | 205 | int isLeaf = db_column_int(pQuery, 5); |
| | @@ -268,23 +271,23 @@ |
| 268 | 271 | gidx = graph_add_row(pGraph, rid, nParent, aParent, zBr, zBgClr); |
| 269 | 272 | db_reset(&qbranch); |
| 270 | 273 | @ <div id="m%d(gidx)"></div> |
| 271 | 274 | } |
| 272 | 275 | if( zBgClr && zBgClr[0] ){ |
| 273 | | - @ <td valign="top" align="left" bgcolor="%h(zBgClr)"> |
| 276 | + @ <td class="timelineTableCell" bgcolor="%h(zBgClr)"> |
| 274 | 277 | }else{ |
| 275 | | - @ <td valign="top" align="left"> |
| 278 | + @ <td class="timelineTableCell"> |
| 276 | 279 | } |
| 277 | 280 | if( zType[0]=='c' ){ |
| 278 | 281 | hyperlink_to_uuid(zUuid); |
| 279 | 282 | if( isLeaf ){ |
| 280 | 283 | if( db_exists("SELECT 1 FROM tagxref" |
| 281 | 284 | " WHERE rid=%d AND tagid=%d AND tagtype>0", |
| 282 | 285 | rid, TAG_CLOSED) ){ |
| 283 | | - @ <b>Closed-Leaf:</b> |
| 286 | + @ <span class="timelineLeaf">Closed-Leaf:</span> |
| 284 | 287 | }else{ |
| 285 | | - @ <b>Leaf:</b> |
| 288 | + @ <span class="timelineLeaf">Leaf:</span> |
| 286 | 289 | } |
| 287 | 290 | } |
| 288 | 291 | }else if( (tmFlags & TIMELINE_ARTID)!=0 ){ |
| 289 | 292 | hyperlink_to_uuid(zUuid); |
| 290 | 293 | } |
| | @@ -310,20 +313,23 @@ |
| 310 | 313 | } |
| 311 | 314 | @ </td></tr> |
| 312 | 315 | } |
| 313 | 316 | if( suppressCnt ){ |
| 314 | 317 | @ <tr><td><td><td> |
| 315 | | - @ <small><i>... %d(suppressCnt) similar |
| 316 | | - @ event%s(suppressCnt>1?"s":"") omitted.</i></small></tr> |
| 318 | + @ <span class="timelineDisabled">... %d(suppressCnt) similar |
| 319 | + @ event%s(suppressCnt>1?"s":"") omitted.</span></tr> |
| 317 | 320 | suppressCnt = 0; |
| 318 | 321 | } |
| 319 | 322 | if( pGraph ){ |
| 320 | 323 | graph_finish(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0); |
| 321 | 324 | if( pGraph->nErr ){ |
| 322 | 325 | graph_free(pGraph); |
| 323 | 326 | pGraph = 0; |
| 324 | 327 | }else{ |
| 328 | + /* style is not moved to css, because this is |
| 329 | + ** a technical div for the timeline graph |
| 330 | + */ |
| 325 | 331 | @ <tr><td><td> |
| 326 | 332 | @ <div id="grbtm" style="width:%d(pGraph->mxRail*20+30)px;"></div> |
| 327 | 333 | } |
| 328 | 334 | } |
| 329 | 335 | @ </table> |
| 330 | 336 | |