| | @@ -100,14 +100,11 @@ |
| 100 | 100 | } |
| 101 | 101 | if( g.perm.Read ){ |
| 102 | 102 | @ <li>%z(href("%R/timeline"))Project Timeline</a> |
| 103 | 103 | @ <ul> |
| 104 | 104 | @ <li>%z(href("%R/reports"))Activity Reports</a></li> |
| 105 | | - @ <li>%z(href("%R/timeline?n=all&namechng"))File name changes</a></li> |
| 106 | | - @ <li>%z(href("%R/timeline?n=all&forks"))Forks</a></li> |
| 107 | | - @ <li>%z(href("%R/timeline?a=1970-01-01&y=ci&n=10"))First 10 |
| 108 | | - @ check-ins</a></li> |
| 105 | + @ <li>%z(href("%R/sitemap-timeline"))Other timelines</a></li> |
| 109 | 106 | @ </ul> |
| 110 | 107 | @ </li> |
| 111 | 108 | } |
| 112 | 109 | if( g.perm.Read ){ |
| 113 | 110 | @ <li>%z(href("%R/brlist"))Branches</a> |
| | @@ -192,11 +189,10 @@ |
| 192 | 189 | if( g.perm.Admin ){ |
| 193 | 190 | @ <li>%z(href("%R/urllist"))List of URLs used to access |
| 194 | 191 | @ this repository</a></li> |
| 195 | 192 | } |
| 196 | 193 | @ <li>%z(href("%R/bloblist"))List of Artifacts</a></li> |
| 197 | | - @ <li>%z(href("%R/timewarps"))List of "Timewarp" Check-ins</a></li> |
| 198 | 194 | @ </ul> |
| 199 | 195 | @ </li> |
| 200 | 196 | } |
| 201 | 197 | @ <li>%z(href("%R/help"))Help</a> |
| 202 | 198 | @ <ul> |
| | @@ -276,9 +272,49 @@ |
| 276 | 272 | @ <li>%z(href("%R/timewarps"))Timeline of timewarps</a></li> |
| 277 | 273 | } |
| 278 | 274 | @ <li>%z(href("%R/cookies"))Content of display preference cookie</a></li> |
| 279 | 275 | @ <li>%z(href("%R/test-captcha"))Random ASCII-art Captcha image</a></li> |
| 280 | 276 | @ <li>%z(href("%R/test-piechart"))Pie-Chart generator test</a></li> |
| 277 | + if( !isPopup ){ |
| 278 | + style_finish_page("sitemap"); |
| 279 | + } |
| 280 | +} |
| 281 | + |
| 282 | +/* |
| 283 | +** WEBPAGE: sitemap-timeline |
| 284 | +** |
| 285 | +** Generate a list of hyperlinks to various (obscure) variations on |
| 286 | +** the /timeline page. |
| 287 | +*/ |
| 288 | +void sitemap_timeline_page(void){ |
| 289 | + int isPopup = 0; /* This is an XMLHttpRequest() for /sitemap */ |
| 290 | + |
| 291 | + login_check_credentials(); |
| 292 | + if( P("popup")!=0 && cgi_csrf_safe(0) ){ |
| 293 | + /* If this is a POST from the same origin with the popup=1 parameter, |
| 294 | + ** then disable anti-robot defenses */ |
| 295 | + isPopup = 1; |
| 296 | + g.perm.Hyperlink = 1; |
| 297 | + g.javascriptHyperlink = 0; |
| 298 | + } |
| 299 | + if( !isPopup ){ |
| 300 | + style_header("Timeline Examples"); |
| 301 | + style_adunit_config(ADUNIT_RIGHT_OK); |
| 302 | + } |
| 303 | + @ <ul id="sitemap" class="columns" style="column-width:20em"> |
| 304 | + @ <li>%z(href("%R/timeline?ymd"))Current day</a></li> |
| 305 | + @ <li>%z(href("%R/timeline?yw"))Current week</a></li> |
| 306 | + @ <li>%z(href("%R/timeline?ym"))Current month</a></li> |
| 307 | + @ <li>%z(href("%R/thisdayinhistory"))Today in history</a></li> |
| 308 | + @ <li>%z(href("%R/timeline?a=1970-01-01&y=ci&n=10"))First 10 |
| 309 | + @ check-ins</a></li> |
| 310 | + @ <li>%z(href("%R/timeline?namechng"))File name changes</a></li> |
| 311 | + @ <li>%z(href("%R/timeline?forks"))Forks</a></li> |
| 312 | + @ <li>%z(href("%R/timeline?cherrypicks"))Cherrypick merges</a></li> |
| 313 | + @ <li>%z(href("%R/timewarps"))Timewarps</a></li> |
| 314 | + @ <li>%z(href("%R/timeline?ubg"))Color-coded by user</a></li> |
| 315 | + @ <li>%z(href("%R/timeline?deltabg"))Delta vs. baseline manifests</a></li> |
| 316 | + @ </ul> |
| 281 | 317 | if( !isPopup ){ |
| 282 | 318 | style_finish_page("sitemap"); |
| 283 | 319 | } |
| 284 | 320 | } |
| 285 | 321 | |