Move directory text into type column
svn path=/trunk/netsurf/; revision=10632
This commit is contained in:
parent
1b49494d6e
commit
12df55d095
|
@ -124,7 +124,7 @@ bool directory_convert(struct content *c) {
|
||||||
if(up[strlen(up) - 1] == '/') up[strlen(up) - 1] = '\0';
|
if(up[strlen(up) - 1] == '/') up[strlen(up) - 1] = '\0';
|
||||||
snprintf(buffer, sizeof(buffer),
|
snprintf(buffer, sizeof(buffer),
|
||||||
"<tr bgcolor=\"#CCCCFF\"><td><b><a href=\"%s\">%s</a></td>" \
|
"<tr bgcolor=\"#CCCCFF\"><td><b><a href=\"%s\">%s</a></td>" \
|
||||||
"<td>%s</td><td> </td><td> </td></tr>\n",
|
"<td> </td><td> </td><td>%s</td></tr>\n",
|
||||||
up, messages_get("FileParent"), messages_get("FileDirectory"));
|
up, messages_get("FileParent"), messages_get("FileDirectory"));
|
||||||
|
|
||||||
binding_parse_chunk(c->data.html.parser_binding,
|
binding_parse_chunk(c->data.html.parser_binding,
|
||||||
|
@ -190,12 +190,12 @@ bool directory_convert(struct content *c) {
|
||||||
|
|
||||||
if(S_ISDIR(filestat.st_mode)) {
|
if(S_ISDIR(filestat.st_mode)) {
|
||||||
snprintf(buffer, sizeof(buffer),
|
snprintf(buffer, sizeof(buffer),
|
||||||
"<td>%s</td><td>%s</td><td> </td>\n",
|
"<td> </td><td>%s</td><td>%s</td>\n",
|
||||||
messages_get("FileDirectory"), modtime);
|
modtime, messages_get("FileDirectory"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
snprintf(buffer, sizeof(buffer),
|
snprintf(buffer, sizeof(buffer),
|
||||||
"<td>%d</td><td>%s</td><td>%s</td>\n",
|
"<td>%ld</td><td>%s</td><td>%s</td>\n",
|
||||||
filestat.st_size, modtime, mimetype);
|
filestat.st_size, modtime, mimetype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue