Move directory text into type column

svn path=/trunk/netsurf/; revision=10632
This commit is contained in:
Chris Young 2010-07-13 22:32:03 +00:00
parent 1b49494d6e
commit 12df55d095
1 changed files with 4 additions and 4 deletions

View File

@ -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>&nbsp;</td><td>&nbsp;</td></tr>\n", "<td>&nbsp;</td><td>&nbsp;</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>&nbsp;</td>\n", "<td>&nbsp;</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);
} }
} }