r25032 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25031‎ | r25032 | r25033 >
Date:05:21, 22 August 2007
Author:robchurch
Status:old
Tags:
Comment:
Add a class to <strong> for watched links in change lists
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/ChangesList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ChangesList.php
@@ -171,7 +171,8 @@
172172 ? 'rcid='.$rc->mAttribs['rc_id']
173173 : '';
174174 $articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params );
175 - if($watched) $articlelink = '<strong>'.$articlelink.'</strong>';
 175+ if( $watched )
 176+ $articlelink = "<strong class=\"mw-watched\">{$articlelink}</strong>";
176177 global $wgContLang;
177178 $articlelink .= $wgContLang->getDirMark();
178179
@@ -568,7 +569,7 @@
569570 function maybeWatchedLink( $link, $watched=false ) {
570571 if( $watched ) {
571572 // FIXME: css style might be more appropriate
572 - return '<strong>' . $link . '</strong>';
 573+ return '<strong class="mw-watched">' . $link . '</strong>';
573574 } else {
574575 return $link;
575576 }
Index: trunk/phase3/RELEASE-NOTES
@@ -180,6 +180,8 @@
181181 * Confirmation is now required when deleting old versions of files
182182 * (bug 7535) Users can now enter comments when deleting old versions of files
183183 * (bug 11001) Submit Special:Newpages as a GET, rather than a POST request
 184+* The <strong></strong> around links to watched pages in change lists now
 185+ has a class - "mw-watched"
184186
185187 == Bugfixes since 1.10 ==
186188

Follow-up revisions

RevisionCommit summaryAuthorDate
r25109Merged revisions 25016-25108 via svnmerge from...david07:30, 24 August 2007

Status & tagging log