r56061 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56060‎ | r56061 | r56062 >
Date:19:37, 8 September 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Quick add history link. Could use some refinement.
Modified paths:
  • /trunk/extensions/Translate/SpecialTranslations.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialTranslations.php
@@ -179,6 +179,13 @@
180180 $tools['edit'] = $sk->link( $t, $niceTitle );
181181 }
182182
 183+ $tools['history'] = $sk->link(
 184+ $t,
 185+ "&nbsp;<sup>h</sup>&nbsp;",
 186+ array( 'action'),
 187+ array( 'action' => 'history' )
 188+ );
 189+
183190 $anchor = 'msg_' . $key;
184191 $anchor = Xml::element( 'a', array( 'name' => $anchor, 'href' => "#$anchor" ), "↓" );
185192
@@ -190,7 +197,7 @@
191198 $class = 'def';
192199 }
193200
194 - $leftColumn = $anchor . $tools['edit'] . $extra;
 201+ $leftColumn = $anchor . $tools['history'] . $tools['edit'] . $extra;
195202 $out .= Xml::tags( 'tr', array( 'class' => $class ),
196203 Xml::tags( 'td', null, $leftColumn ) .
197204 Xml::tags( 'td', null, TranslateUtils::convertWhiteSpaceToHTML( $pageInfo[$key][0] ) )

Status & tagging log