From: Stephan Gambke Date: Sun, 14 Sep 2014 17:35:39 +0000 (+0200) Subject: Improve styleability of RecentChanges form X-Git-Tag: 1.31.0-rc.0~13962^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d9f22aaec5d41f96beb17f8ab37843a4330e7de7;p=lhc%2Fweb%2Fwiklou.git Improve styleability of RecentChanges form The current form is a sequence of text and links without any structure which makes it impossible to apply styles. This patch wraps some elements in spans and assigns class names, so that they can be targeted by CSS rules. Change-Id: If3ca99b0bd251528ced856822c8e52a18657deb8 --- diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 5938f017c7..25da16d153 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -732,7 +732,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { $link = $this->makeOptionsLink( $linkMessage->text(), array( $key => 1 - $options[$key] ), $nondefaults ); - $links[] = $this->msg( $msg )->rawParams( $link )->escaped(); + $links[] = "" . $this->msg( $msg )->rawParams( $link )->escaped() . ''; } // show from this onward link @@ -740,13 +740,16 @@ class SpecialRecentChanges extends ChangesListSpecialPage { $now = $lang->userTimeAndDate( $timestamp, $user ); $timenow = $lang->userTime( $timestamp, $user ); $datenow = $lang->userDate( $timestamp, $user ); - $rclinks = $this->msg( 'rclinks' )->rawParams( $cl, $dl, $lang->pipeList( $links ) ) - ->parse(); - $rclistfrom = $this->makeOptionsLink( + $pipedLinks = '' . $lang->pipeList( $links ) . ''; + + $rclinks = '' . $this->msg( 'rclinks' )->rawParams( $cl, $dl, $pipedLinks ) + ->parse() . ''; + + $rclistfrom = '' . $this->makeOptionsLink( $this->msg( 'rclistfrom' )->rawParams( $now, $timenow, $datenow )->parse(), array( 'from' => $timestamp ), $nondefaults - ); + ) . ''; return "{$note}$rclinks
$rclistfrom"; }