| | @@ -579,11 +579,33 @@ |
| 579 | 579 | } |
| 580 | 580 | if( zBody==0 ){ |
| 581 | 581 | zBody = mprintf("<i>Empty Page</i>"); |
| 582 | 582 | } |
| 583 | 583 | style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 584 | | - style_header("Edit: %s", zPageName); |
| 584 | + |
| 585 | + if( db_get_boolean("wiki-about",1)==0 ){ |
| 586 | + style_header("Edit: %s", zPageName); |
| 587 | + }else |
| 588 | + if( sqlite3_strglob("checkin/*", zPageName)==0 |
| 589 | + && db_exists("SELECT 1 FROM blob WHERE uuid=%Q",zPageName+8) |
| 590 | + ){ |
| 591 | + style_header("Notes About Checkin %S", zPageName + 8); |
| 592 | + style_submenu_element("Checkin Timeline","%R/timeline?f=%s",zPageName + 8); |
| 593 | + style_submenu_element("Checkin Info","%R/info/%s",zPageName + 8); |
| 594 | + }else |
| 595 | + if( sqlite3_strglob("branch/*", zPageName)==0 ){ |
| 596 | + style_header("Notes About Branch %h", zPageName + 7); |
| 597 | + style_submenu_element("Branch Timeline","%R/timeline?r=%t",zPageName + 7); |
| 598 | + }else |
| 599 | + if( sqlite3_strglob("tag/*", zPageName)==0 ){ |
| 600 | + style_header("Notes About Tag %h", zPageName + 4); |
| 601 | + style_submenu_element("Tag Timeline","%R/timeline?t=%t",zPageName + 4); |
| 602 | + } |
| 603 | + else{ |
| 604 | + style_header("Edit: %s", zPageName); |
| 605 | + } |
| 606 | + |
| 585 | 607 | if( rid && !isSandbox && g.perm.ApndWiki ){ |
| 586 | 608 | if( g.perm.Attach ){ |
| 587 | 609 | style_submenu_element("Attach", |
| 588 | 610 | "%s/attachadd?page=%T&from=%s/wiki%%3fname=%T", |
| 589 | 611 | g.zTop, zPageName, g.zTop, zPageName); |
| | @@ -1530,10 +1552,11 @@ |
| 1530 | 1552 | const char *zName, /* Name of the object */ |
| 1531 | 1553 | unsigned int mFlags /* Zero or more WIKIASSOC_* flags */ |
| 1532 | 1554 | ){ |
| 1533 | 1555 | int rid; |
| 1534 | 1556 | Manifest *pWiki; |
| 1557 | + if( !db_get_boolean("wiki-about",1) ) return 0; |
| 1535 | 1558 | rid = db_int(0, |
| 1536 | 1559 | "SELECT rid FROM tagxref" |
| 1537 | 1560 | " WHERE tagid=(SELECT tagid FROM tag WHERE tagname='wiki-%q/%q')" |
| 1538 | 1561 | " ORDER BY mtime DESC LIMIT 1", |
| 1539 | 1562 | zPrefix, zName |
| 1540 | 1563 | |