Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Remove some dead code from the web timeline. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | cbc41ff4c9cf38ff73e67a8eccddacde |
User & Date: | drh 2011-01-14 20:54:30 |
Context
2011-01-14
| ||
21:07 | Fix the /info URL so that it works for events. Ticket [b5efc3a47bd10f0510]. check-in: 1e801c5f user: drh tags: trunk | |
20:54 | Remove some dead code from the web timeline. check-in: cbc41ff4 user: drh tags: trunk | |
17:16 | Enhancements to "divider" processing in web timelines. Only show a single divider if two or more occur beside each other. Add the "nd" query parameter to suppress all dividers. check-in: c8920083 user: drh tags: trunk | |
Changes
Changes to src/timeline.c.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
} /* ** Generate a hyperlink to a version. */ void hyperlink_to_uuid(const char *zUuid){ char zShortUuid[UUID_SIZE+1]; shorten_uuid(zShortUuid, zUuid); if( g.okHistory ){ @ <a class="timelineHistLink" href="%s(g.zTop)/info/%s(zShortUuid)"> @ [%s(zShortUuid)]</a> }else{ @ <span class="timelineHistDsp">[%s(zShortUuid)]</span> } } /* ** Generate a hyperlink that invokes javascript to highlight ** a version on mouseover. */ void hyperlink_to_uuid_with_mouseover( const char *zUuid, /* The UUID to display */ const char *zIn, /* Javascript proc for mouseover */ const char *zOut, /* Javascript proc for mouseout */ int id /* Argument to javascript procs */ ){ char zShortUuid[UUID_SIZE+1]; shorten_uuid(zShortUuid, zUuid); if( g.okHistory ){ @ <a onmouseover='%s(zIn)("m%d(id)")' onmouseout='%s(zOut)("m%d(id)")' @ href="%s(g.zTop)/vinfo/%s(zShortUuid)">[%s(zShortUuid)]</a> }else{ @ <b onmouseover='%s(zIn)("m%d(id)")' onmouseout='%s(zOut)("m%d(id)")'> @ [%s(zShortUuid)]</b> } } /* ** Generate a hyperlink to a diff between two versions. */ void hyperlink_to_diff(const char *zV1, const char *zV2){ |
| | | < | < < < < < < < < < < < < < < < < < < < < < |
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
}
/*
** Generate a hyperlink to a version.
*/
void hyperlink_to_uuid(const char *zUuid){
char z[UUID_SIZE+1];
shorten_uuid(z, zUuid);
if( g.okHistory ){
@ <a class="timelineHistLink" href="%s(g.zTop)/info/%s(z)">[%s(z)]</a>
}else{
@ <span class="timelineHistDsp">[%s(z)]</span>
}
}
/*
** Generate a hyperlink to a diff between two versions.
*/
void hyperlink_to_diff(const char *zV1, const char *zV2){
|