X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fhtls.c;h=b514b83f5f8a5e06e1c29e7157f3ed5d14e85385;hb=926848cd7900071edc622b75d3d2cd8ae0f15670;hp=907187ccbd83d0dd8f93d4e4812cfe1bb1fc991d;hpb=060376d428e8693e817ac0eae4710ce222d14e07;p=ashd.git diff --git a/src/htls.c b/src/htls.c index 907187c..b514b83 100644 --- a/src/htls.c +++ b/src/htls.c @@ -91,6 +91,7 @@ static void head(char *name, struct charbuf *dst) bprintf(dst, ".dirindex td {padding: 0 1em;}\n"); bprintf(dst, ".dentry:hover {background: #ddd;}\n"); bprintf(dst, ".dir {background: #ddf;}\n"); + bprintf(dst, ".dir .filename:before {content: \"\342\206\263 \"}\n"); bprintf(dst, ".exec {background: #dfd;}\n"); bprintf(dst, "\n"); } @@ -149,8 +150,9 @@ static void mkindex(char *name, DIR *dir, struct charbuf *dst) if(dirbuf.b[i].w) bprintf(dst, " writable"); bprintf(dst, "\">"); - fn = htmlquote(dirbuf.b[i].name); - bprintf(dst, "%s", fn, fn); + bprintf(dst, "", htmlquote(urlquote(dirbuf.b[i].name))); + bprintf(dst, "%s", htmlquote(dirbuf.b[i].name)); + bprintf(dst, ""); if(dispsize) { bprintf(dst, ""); if(!S_ISDIR(dirbuf.b[i].sb.st_mode))