From d67f6ce936647c7312b944d2d2c0c0da13352e1f Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Thu, 5 May 2005 11:28:52 +0000 Subject: [PATCH 1/1] - Make use of capabilities of new template class - Don't show "Chmod/Chgrp" link in directory listing if the object is a symbolic link --- modules/Command.pm | 3 +-- templates/dirlist_file.htm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/Command.pm b/modules/Command.pm index e8d8520..42da15d 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -6,7 +6,7 @@ package Command; # Execute Dev-Editor's commands # # Author: Patrick Canterino -# Last modified: 2005-04-23 +# Last modified: 2005-05-05 # use strict; @@ -178,7 +178,6 @@ sub exec_show($$) $ftpl->fillin('URL',equal_url(encode_html($config->{'httproot'}),$virt_path->{'html'})); $ftpl->parse_if_block('link',-l $phys_path); - $ftpl->parse_if_block('no_link',not -l $phys_path); $ftpl->parse_if_block('not_readable',not -r $phys_path); $ftpl->parse_if_block('binary',-B $phys_path); $ftpl->parse_if_block('readonly',not -w $phys_path); diff --git a/templates/dirlist_file.htm b/templates/dirlist_file.htm index eb107ba..99e2ae1 100644 --- a/templates/dirlist_file.htm +++ b/templates/dirlist_file.htm @@ -2,5 +2,5 @@ {SIZE} {DATE}{IF gmt} (GMT){ENDIF} {FILE_NAME} -({IF viewable}View{ELSE}View{ENDIF} | {IF editable}Edit{ELSE}Edit{ENDIF}{IF no_link} | Copy{ENDIF}{IF dir_writeable} | Rename | Delete{ENDIF} |{IF users} Chmod/Chgrp |{ENDIF} View in Browser) +({IF viewable}View{ELSE}View{ENDIF} | {IF editable}Edit{ELSE}Edit{ENDIF}{IF !link} | Copy{ENDIF}{IF dir_writeable} | Rename | Delete{ENDIF} |{IF !link}{IF users} Chmod/Chgrp |{ENDIF}{ENDIF} View in Browser) -- 2.34.1