Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Use CSS instead of <string> markup to add emphasis to the check-in hash. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | timeline-enhance-2025 |
| Files: | files | file ages | folders |
| SHA3-256: |
6950c14829deb2341298ccdc46f0e737 |
| User & Date: | drh 2025-10-17 14:18:44.641 |
Context
|
2025-10-17
| ||
| 15:49 | Improvements to the display of /brtimeline. ... (check-in: 8b00a97140 user: drh tags: timeline-enhance-2025) | |
| 14:18 | Use CSS instead of <string> markup to add emphasis to the check-in hash. ... (check-in: 6950c14829 user: drh tags: timeline-enhance-2025) | |
| 13:55 | Deemphasize "leaf" and "closed-leaf" on the timeline. But add emphasis to the check-in hash, as that part is far more important. ... (check-in: 33de43f0f1 user: drh tags: timeline-enhance-2025) | |
Changes
Changes to src/default.css.
| ︙ | ︙ | |||
55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
tr.timelineCurrent td {
border-radius: 0;
border-width: 0;
}
span.timelineLeaf {
font-weight: bold;
}
span.timelineHistDsp {
font-weight: bold;
}
td.timelineTime {
vertical-align: top;
text-align: right;
white-space: nowrap;
| > > > | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
tr.timelineCurrent td {
border-radius: 0;
border-width: 0;
}
span.timelineLeaf {
font-weight: bold;
}
span.timelineHash {
font-weight: bold;
}
span.timelineHistDsp {
font-weight: bold;
}
td.timelineTime {
vertical-align: top;
text-align: right;
white-space: nowrap;
|
| ︙ | ︙ |
Changes to src/tar.c.
| ︙ | ︙ | |||
958 959 960 961 962 963 964 |
char *zNm;
if( zProject==0 ) zProject = db_get("project-name","unnamed");
zNm = mprintf("%s-%sZ-%.8s", zProject, zDate, zUuid);
nProject = (int)strlen(zProject);
zNm[nProject+11] = 'T';
if( tmFlags & TIMELINE_COLUMNAR ){
| | | > < | > | 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 |
char *zNm;
if( zProject==0 ) zProject = db_get("project-name","unnamed");
zNm = mprintf("%s-%sZ-%.8s", zProject, zDate, zUuid);
nProject = (int)strlen(zProject);
zNm[nProject+11] = 'T';
if( tmFlags & TIMELINE_COLUMNAR ){
@ <nobr>check-in: \
@ %z(href("%R/info/%!S",zUuid))<span class='timelineHash'>\
@ %S(zUuid)</span></a></nobr><br>
if( fossil_strcmp(zBrName,"trunk")!=0 ){
@ <nobr>branch: \
@ %z(href("%R/timeline?r=%t",zBrName))%h(zBrName)</a></nobr><br>\
}
}else{
if( (tmFlags & TIMELINE_CLASSIC)==0 ){
@ check-in: %z(href("%R/info/%!S",zUuid))\
@ <span class='timelineHash'>%S(zUuid)</span></a>
}
if( (tmFlags & TIMELINE_GRAPH)==0 && fossil_strcmp(zBrName,"trunk")!=0 ){
@ branch: \
@ %z(href("%R/timeline?r=%t",zBrName))%h(zBrName)</a>
}
}
@ %z(href("%R/tarball/%!S/%t.tar.gz",zUuid,zNm))\
|
| ︙ | ︙ |
Changes to src/timeline.c.
| ︙ | ︙ | |||
233 234 235 236 237 238 239 |
int isLeaf = db_column_int(pQuery, 5);
const char *zPrefix;
if( isLeaf ){
zPrefix = has_closed_tag(rid) ? "closed " : "leaf ";
}else{
zPrefix = "";
}
| | > | 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
int isLeaf = db_column_int(pQuery, 5);
const char *zPrefix;
if( isLeaf ){
zPrefix = has_closed_tag(rid) ? "closed " : "leaf ";
}else{
zPrefix = "";
}
cgi_printf("%scheck-in: %z<span class='timelineHash'>"
"%S</span></a> ",
zPrefix, href("%R/info/%!S",zUuid),zUuid);
}else if( zType[0]=='e' && tagid ){
cgi_printf("technote: ");
hyperlink_to_event_tagid(tagid<0?-tagid:tagid);
}else{
cgi_printf("artifact: %z%S</a> ",
href("%R/info/%!S",zUuid),zUuid);
|
| ︙ | ︙ |