Fossil SCM
Added submenu Edit entry, when appropriate, to /file, per forum feedback.
Commit
4818e7fdacc0c35988bb7c73e49bca39af4cbc2a9dcddcd339b7dbaf06052d0e
Parent
d361947c8df52da…
1 file changed
+5
+5
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -2330,10 +2330,15 @@ | ||
| 2330 | 2330 | }else{ |
| 2331 | 2331 | renderAsWiki = 1; |
| 2332 | 2332 | style_submenu_element("Text", "%s", url_render(&url, "txt", "1", 0, 0)); |
| 2333 | 2333 | } |
| 2334 | 2334 | } |
| 2335 | + if( fileedit_is_editable(zName) ){ | |
| 2336 | + style_submenu_element("Edit", | |
| 2337 | + "%R/fileedit?filename=%T&checkin=%!S", | |
| 2338 | + zName, zCI); | |
| 2339 | + } | |
| 2335 | 2340 | } |
| 2336 | 2341 | if( (objType & (OBJTYPE_WIKI|OBJTYPE_TICKET))!=0 ){ |
| 2337 | 2342 | style_submenu_element("Parsed", "%R/info/%s", zUuid); |
| 2338 | 2343 | } |
| 2339 | 2344 | if( descOnly ){ |
| 2340 | 2345 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2330,10 +2330,15 @@ | |
| 2330 | }else{ |
| 2331 | renderAsWiki = 1; |
| 2332 | style_submenu_element("Text", "%s", url_render(&url, "txt", "1", 0, 0)); |
| 2333 | } |
| 2334 | } |
| 2335 | } |
| 2336 | if( (objType & (OBJTYPE_WIKI|OBJTYPE_TICKET))!=0 ){ |
| 2337 | style_submenu_element("Parsed", "%R/info/%s", zUuid); |
| 2338 | } |
| 2339 | if( descOnly ){ |
| 2340 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2330,10 +2330,15 @@ | |
| 2330 | }else{ |
| 2331 | renderAsWiki = 1; |
| 2332 | style_submenu_element("Text", "%s", url_render(&url, "txt", "1", 0, 0)); |
| 2333 | } |
| 2334 | } |
| 2335 | if( fileedit_is_editable(zName) ){ |
| 2336 | style_submenu_element("Edit", |
| 2337 | "%R/fileedit?filename=%T&checkin=%!S", |
| 2338 | zName, zCI); |
| 2339 | } |
| 2340 | } |
| 2341 | if( (objType & (OBJTYPE_WIKI|OBJTYPE_TICKET))!=0 ){ |
| 2342 | style_submenu_element("Parsed", "%R/info/%s", zUuid); |
| 2343 | } |
| 2344 | if( descOnly ){ |
| 2345 |