tinycm diff index.cgi @ rev 65

Small fix to blog and ls
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 16 23:36:43 2014 +0100 (2014-02-16)
parents d73353aed02d
children e3cba575c564
line diff
     1.1 --- a/index.cgi	Thu Feb 06 19:35:03 2014 +0000
     1.2 +++ b/index.cgi	Sun Feb 16 23:36:43 2014 +0100
     1.3 @@ -571,11 +571,15 @@
     1.4  		cd ${wiki}
     1.5  		for d in $(find . -type f | sed s'/.\///')
     1.6  		do
     1.7 -			echo "<a href='$script?d=${d%.txt}'>${d%.txt}</a>"
     1.8 -			[ "$auth" ] && cat << EOT
     1.9 - : <a href="$script?rm=$d">$(gettext "Remove")</a> || \
    1.10 -<a href="$script?edit=$d">$(gettext "Edit")</a>
    1.11 +			echo -n "<a href='$script?d=${d%.txt}'>${d%.txt}</a>"
    1.12 +			if [ "$auth" ]; then 
    1.13 +				cat << EOT
    1.14 + : <a href="$script?edit=$d">$(gettext "Edit")</a> || \
    1.15 +<a href="$script?rm=$d">$(gettext "Remove")</a> 
    1.16  EOT
    1.17 +			else
    1.18 +				echo ""
    1.19 +			fi
    1.20  		done && unset auth
    1.21  		echo '</pre>'
    1.22  		html_footer ;;