. '<th>' . wfMsgHtml( 'filehist-datetime' ) . '</th>'
. '<th>' . wfMsgHtml( 'filehist-user' ) . '</th>'
. '<th>' . wfMsgHtml( 'filehist-dimensions' ) . '</th>'
- . '<th>' . wfMsgHtml( 'filehist-filesize' ) . '</th>'
+ . '<th class="mw-imagepage-filesize">' . wfMsgHtml( 'filehist-filesize' ) . '</th>'
. '<th>' . wfMsgHtml( 'filehist-comment' ) . '</th>'
. "</tr>\n";
}
global $wgUser, $wgLang, $wgTitle, $wgContLang;
$local = $this->img->isLocal();
$row = '';
-
+
// Deletion link
if( $local && $wgUser->isAllowed( 'delete' ) ) {
$row .= '<td>';
) . ')';
$row .= '</td>';
}
-
+
// Reversion link/current indicator
$row .= '<td>';
if( $iscur ) {
) . ')';
}
$row .= '</td>';
-
+
// Date/time and image link
$row .= '<td>';
$url = $iscur ? $this->img->getUrl() : $this->img->getArchiveUrl( $img );
$wgLang->timeAndDate( $timestamp, true )
);
$row .= '</td>';
-
+
// Uploading user
$row .= '<td>';
if( $local ) {
$row .= htmlspecialchars( $usertext );
}
$row .= '</td>';
-
+
// Image dimensions
// FIXME: It would be nice to show the duration (sound files) or
// width/height/duration (video files) here, but this needs some
// additional media handler work
$row .= '<td>' . wfMsgHtml( 'widthheight', $width, $height ) . '</td>';
-
+
// File size
- $row .= '<td>' . $this->skin->formatSize( $size ) . '</td>';
-
+ $row .= '<td class="mw-imagepage-filesize">' . $this->skin->formatSize( $size ) . '</td>';
+
// Comment
$row .= '<td>' . $this->skin->formatComment( $description, $this->title ) . '</td>';
-
+
return "<tr>{$row}</tr>\n";
}
/**
* File histories
*/
+table.filehistory {
+ border:1px solid #ccc;
+ border-collapse:collapse;
+}
+
table.filehistory th,
table.filehistory td {
padding: 0 0.2em 0 0.2em;
+ vertical-align:top;
+ border:1px solid #ccc;
}
table.filehistory th {
text-align: left;
-}
\ No newline at end of file
+}
+table.filehistory td.mw-imagepage-filesize,
+table.filehistory th.mw-imagepage-filesize {
+ white-space:nowrap;
+}