From: pcanterino <> Date: Thu, 5 May 2005 11:28:52 +0000 (+0000) Subject: - Make use of capabilities of new template class X-Git-Tag: version_3_0~30 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/d67f6ce936647c7312b944d2d2c0c0da13352e1f?hp=633e5feee661afa985e87a66b524650ed1eae55a - Make use of capabilities of new template class - Don't show "Chmod/Chgrp" link in directory listing if the object is a symbolic link --- 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)