* Prettifying file history table a bit. Especially for histories with long comments...
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 30 Jul 2007 21:09:31 +0000 (21:09 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 30 Jul 2007 21:09:31 +0000 (21:09 +0000)
includes/DefaultSettings.php
includes/ImagePage.php
skins/common/shared.css

index e764937..d4b0b5c 100644 (file)
@@ -1195,7 +1195,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '93';
+$wgStyleVersion = '94';
 
 
 # Server-side caching:
index f95d26b..a6b33cd 100644 (file)
@@ -673,7 +673,7 @@ class ImageHistoryList {
                        . '<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";
        }
@@ -686,7 +686,7 @@ class ImageHistoryList {
                global $wgUser, $wgLang, $wgTitle, $wgContLang;
                $local = $this->img->isLocal();
                $row = '';
-               
+
                // Deletion link
                if( $local && $wgUser->isAllowed( 'delete' ) ) {
                        $row .= '<td>';
@@ -702,7 +702,7 @@ class ImageHistoryList {
                        ) . ')';
                        $row .= '</td>';
                }
-               
+
                // Reversion link/current indicator
                $row .= '<td>';
                if( $iscur ) {
@@ -719,7 +719,7 @@ class ImageHistoryList {
                        ) . ')';
                }
                $row .= '</td>';
-               
+
                // Date/time and image link
                $row .= '<td>';
                $url = $iscur ? $this->img->getUrl() : $this->img->getArchiveUrl( $img );
@@ -729,7 +729,7 @@ class ImageHistoryList {
                        $wgLang->timeAndDate( $timestamp, true )
                );
                $row .= '</td>';
-               
+
                // Uploading user
                $row .= '<td>';
                if( $local ) {
@@ -738,19 +738,19 @@ class ImageHistoryList {
                        $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";
        }
 
index f03524b..6af03db 100644 (file)
@@ -31,10 +31,21 @@ div#mw-js-message {
 /**
  * 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;
+}