2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
|
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
|
-
+
+
+
+
|
** Add an "Wiki" button in a submenu that links to the read-wiki page.
*/
static void wiki_submenu_to_read_wiki(
const char *zPrefix, /* "branch", "tag", or "checkin" */
const char *zName, /* Name of the object */
unsigned int mFlags /* Zero or more WIKIASSOC_* flags */
){
if( g.perm.RdWiki && (mFlags & WIKIASSOC_MENU_READ)!=0 ){
if( g.perm.RdWiki && (mFlags & WIKIASSOC_MENU_READ)!=0
&& 0!=fossil_strcmp("branch", zPrefix)
/* ^^^ https://fossil-scm.org/forum/forumpost/ff453de2f30791dd */
){
style_submenu_element("Wiki", "%R/wiki?name=%s/%t", zPrefix, zName);
}
}
/*
** Add an "Edit Wiki" button in a submenu that links to the edit-wiki page.
*/
|