Fossil SCM

Omit the link to the "ZIP archive" if the user does not have permissions to download the ZIP archive. Ticket [f18142409088bfc707e26].

drh 2010-08-23 22:24 trunk
Commit 8474ca6747d54c7436ef788c1124b30aa5fa83b6
1 file changed +4 -2
+4 -2
--- src/info.c
+++ src/info.c
@@ -406,12 +406,14 @@
406406
db_finalize(&q);
407407
@ </td></tr>
408408
@ <tr><th>Other&nbsp;Links:</th>
409409
@ <td>
410410
@ <a href="%s(g.zTop)/dir?ci=%S(zUuid)">files</a>
411
- @ | <a href="%s(g.zTop)/zip/%s(zProjName)-%S(zUuid).zip?uuid=%s(zUuid)">
412
- @ ZIP archive</a>
411
+ if( g.okZip ){
412
+ @ | <a href="%s(g.zTop)/zip/%s(zProjName)-%S(zUuid).zip?uuid=%s(zUuid)">
413
+ @ ZIP archive</a>
414
+ }
413415
@ | <a href="%s(g.zTop)/artifact/%S(zUuid)">manifest</a>
414416
if( g.okWrite ){
415417
@ | <a href="%s(g.zTop)/ci_edit?r=%S(zUuid)">edit</a>
416418
}
417419
@ </td>
418420
--- src/info.c
+++ src/info.c
@@ -406,12 +406,14 @@
406 db_finalize(&q);
407 @ </td></tr>
408 @ <tr><th>Other&nbsp;Links:</th>
409 @ <td>
410 @ <a href="%s(g.zTop)/dir?ci=%S(zUuid)">files</a>
411 @ | <a href="%s(g.zTop)/zip/%s(zProjName)-%S(zUuid).zip?uuid=%s(zUuid)">
412 @ ZIP archive</a>
 
 
413 @ | <a href="%s(g.zTop)/artifact/%S(zUuid)">manifest</a>
414 if( g.okWrite ){
415 @ | <a href="%s(g.zTop)/ci_edit?r=%S(zUuid)">edit</a>
416 }
417 @ </td>
418
--- src/info.c
+++ src/info.c
@@ -406,12 +406,14 @@
406 db_finalize(&q);
407 @ </td></tr>
408 @ <tr><th>Other&nbsp;Links:</th>
409 @ <td>
410 @ <a href="%s(g.zTop)/dir?ci=%S(zUuid)">files</a>
411 if( g.okZip ){
412 @ | <a href="%s(g.zTop)/zip/%s(zProjName)-%S(zUuid).zip?uuid=%s(zUuid)">
413 @ ZIP archive</a>
414 }
415 @ | <a href="%s(g.zTop)/artifact/%S(zUuid)">manifest</a>
416 if( g.okWrite ){
417 @ | <a href="%s(g.zTop)/ci_edit?r=%S(zUuid)">edit</a>
418 }
419 @ </td>
420

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button