From de5516294c8576681c56a6db5020fcc8a7508406 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Tue, 14 Sep 2004 19:47:29 +0000 Subject: [PATCH] Some usability changes after feedback from taw: Have diff link after hist link, so that the diff links form a column Don't have different labels for diff links of top revisions vs old revisions Have (top) mark at the end of the line --- includes/SpecialContributions.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index d90540fb2f..431877c515 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -189,43 +189,44 @@ function wfSpecialContributions( $par = '' ) { function ucListEdit( $sk, $ns, $t, $ts, $topmark, $comment, $isminor, $isnew, $target, $oldid ) { global $wgLang, $wgOut, $wgUser, $wgRequest; $page = Title::makeName( $ns, $t ); - $link = $sk->makeKnownLink( $page, "" ); - $topmarktext=""; + $link = $sk->makeKnownLink( $page, '' ); + $difftext = $topmarktext = ''; if($topmark) { + $topmarktext .= '' . wfMsg('uctop') . ''; if(!$isnew) { - $topmarktext .= $sk->makeKnownLink( $page, wfMsg("uctop"), "diff=0" ); + $difftext .= $sk->makeKnownLink( $page, '(' . wfMsg('diff') . ')', 'diff=0' ); } else { - $topmarktext .= wfMsg("newarticle"); + $difftext .= wfMsg('newarticle'); } $sysop = $wgUser->isSysop(); if($sysop ) { - $extraRollback = $wgRequest->getBool( "bot" ) ? '&bot=1' : ''; + $extraRollback = $wgRequest->getBool( 'bot' ) ? '&bot=1' : ''; # $target = $wgRequest->getText( 'target' ); - $topmarktext .= " [". $sk->makeKnownLink( $page, - wfMsg( "rollbacklink" ), - "action=rollback&from=" . urlencode( $target ) . $extraRollback ) ."]"; + $topmarktext .= ' ['. $sk->makeKnownLink( $page, + wfMsg( 'rollbacklink' ), + 'action=rollback&from=' . urlencode( $target ) . $extraRollback ) .']'; } } if ( $oldid ) { - $oldtext= $sk->makeKnownLink( $page, '('.wfMsg('diff').')', 'diff=prev&oldid='.$oldid ); - } else { $oldtext=''; } - $histlink="(".$sk->makeKnownLink($page,wfMsg("hist"),"action=history").")"; + $difftext= $sk->makeKnownLink( $page, '('.wfMsg('diff').')', 'diff=prev&oldid='.$oldid ); + } + $histlink='('.$sk->makeKnownLink($page,wfMsg('hist'),'action=history').')'; if($comment) { - $comment="(". $sk->formatComment($comment, Title::newFromText($t) ) .") "; + $comment='('. $sk->formatComment($comment, Title::newFromText($t) ) .') '; } $d = $wgLang->timeanddate( $ts, true ); if ($isminor) { - $mflag = ''.wfMsg( "minoreditletter" ).' '; + $mflag = ''.wfMsg( 'minoreditletter' ).' '; } else { - $mflag = ""; + $mflag = ''; } - $wgOut->addHTML( "
  • {$d} {$histlink} {$mflag} {$link} {$comment}{$topmarktext}{$oldtext}
  • \n" ); + $wgOut->addHTML( "
  • {$d} {$histlink} {$difftext} {$mflag} {$link} {$comment} {$topmarktext}
  • \n" ); } /** -- 2.20.1