xhtml fixes

master
Joey Hess 2008-07-02 16:08:48 -04:00
parent 895faed642
commit 1289beb53b
2 changed files with 3 additions and 4 deletions

View File

@ -180,7 +180,7 @@ sub attachment_list ($) {
$f=~m/^\Q$loc\E[^\/]+$/ && $f=~m/^\Q$loc\E[^\/]+$/ &&
-e "$config{srcdir}/$f") { -e "$config{srcdir}/$f") {
push @ret, { push @ret, {
"field-select" => '<input type="checkbox" name="attachment_select" value="'.$f.'">', "field-select" => '<input type="checkbox" name="attachment_select" value="'.$f.'" />',
link => htmllink($page, $page, $f, noimageinline => 1), link => htmllink($page, $page, $f, noimageinline => 1),
size => humansize((stat(_))[7]), size => humansize((stat(_))[7]),
mtime => displaytime($IkiWiki::pagemtime{$f}), mtime => displaytime($IkiWiki::pagemtime{$f}),

View File

@ -64,14 +64,13 @@ Optional comment about this change:<br />
<TMPL_IF NAME="FIELD-ATTACHMENT"> <TMPL_IF NAME="FIELD-ATTACHMENT">
<div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments"> <div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments">
<table> <table>
<tr><td colspan=5><TMPL_VAR FIELD-ATTACHMENT><TMPL_VAR FIELD-UPLOAD></td></tr> <tr><td colspan="5"><TMPL_VAR FIELD-ATTACHMENT><TMPL_VAR FIELD-UPLOAD></td></tr>
<TMPL_LOOP NAME="ATTACHMENT_LIST"> <TMPL_LOOP NAME="ATTACHMENT_LIST">
<tr><td><TMPL_VAR FIELD-SELECT><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr> <tr><td><TMPL_VAR FIELD-SELECT><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr>
</TMPL_LOOP> </TMPL_LOOP>
<TMPL_IF NAME="ATTACHMENT_LIST"> <TMPL_IF NAME="ATTACHMENT_LIST">
<tr><td colspan=2><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-DELETE><TMPL_VAR FIELD-RENAME></td></tr> <tr><td colspan="2"><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-DELETE><TMPL_VAR FIELD-RENAME></td></tr>
</TMPL_IF> </TMPL_IF>
</tr>
</table> </table>
</div> </div>
</TMPL_IF> </TMPL_IF>