Fossil

Check-in [95335751]
Login

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

Overview
Comment:Add "Related" and "Branch Only" buttons to the t= and r= query parameters for /timeline.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:953357515ccf2fc9d0e6e6b3ad5c05186c7343a2
User & Date: drh 2015-12-25 02:25:56
Context
2015-12-25
03:20
Add a configuration option that will truncate the display of check-in comments on timelines at the first blank line. check-in: 96101215 user: drh tags: trunk
02:25
Add "Related" and "Branch Only" buttons to the t= and r= query parameters for /timeline. check-in: 95335751 user: drh tags: trunk
00:20
Improvements to the way mlink is computed. Some unnecessary mlink entries are suppressed. Running "fossil rebuild" is recommended. check-in: e2c53534 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

  1290   1290       return;
  1291   1291     }
  1292   1292     url_initialize(&url, "timeline");
  1293   1293     cgi_query_parameters_to_url(&url);
  1294   1294     if( zTagName && g.perm.Read ){
  1295   1295       tagid = db_int(-1,"SELECT tagid FROM tag WHERE tagname='sym-%q'",zTagName);
  1296   1296       zThisTag = zTagName;
         1297  +    style_submenu_element("Related", "Related", "%s",
         1298  +                          url_render(&url, "r", zTagName, "t", 0));
  1297   1299     }else if( zBrName && g.perm.Read ){
  1298   1300       tagid = db_int(-1,"SELECT tagid FROM tag WHERE tagname='sym-%q'",zBrName);
  1299   1301       zThisTag = zBrName;
         1302  +    style_submenu_element("Branch Only", "only", "%s",
         1303  +                          url_render(&url, "t", zBrName, "r", 0));
  1300   1304     }else{
  1301   1305       tagid = 0;
  1302   1306     }
  1303   1307     if( zMark && zMark[0]==0 ){
  1304   1308       if( zAfter ) zMark = zAfter;
  1305   1309       if( zBefore ) zMark = zBefore;
  1306   1310       if( zCirca ) zMark = zCirca;