Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -88,6 +88,10 @@ |
89 | 89 | 'code-status-deferred' => 'deferred', |
90 | 90 | 'code-pathsearch-legend' => 'Search revisions in this repo by path', |
91 | 91 | 'code-pathsearch-path' => 'Path:', |
| 92 | + 'code-pathsearch-filter' => 'Filter applied: ', |
| 93 | + 'code-revfilter-cr_status' => 'Status = $1', |
| 94 | + 'code-revfilter-cr_author' => 'Author = $1', |
| 95 | + 'code-revfilter-clear' => 'Clear Filter', |
92 | 96 | 'code-rev-submit' => 'Save changes', |
93 | 97 | 'code-rev-submit-accesskey' => 's', |
94 | 98 | 'code-rev-submit-next' => 'Save & next unresolved', |
Index: trunk/extensions/CodeReview/ui/CodeRevisionAuthorView.php |
— | — | @@ -5,6 +5,7 @@ |
6 | 6 | parent::__construct( $repoName ); |
7 | 7 | $this->mAuthor = $author; |
8 | 8 | $this->mUser = $this->authorWikiUser( $author ); |
| 9 | + $this->mAppliedFilter = wfMsg( 'code-revfilter-cr_author', $author ); |
9 | 10 | } |
10 | 11 | |
11 | 12 | function getPager() { |
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -12,6 +12,7 @@ |
13 | 13 | $this->mPath = "/{$this->mPath}"; // make sure this is a valid path |
14 | 14 | } |
15 | 15 | $this->mAuthor = null; |
| 16 | + $this->mAppliedFilter = null; |
16 | 17 | } |
17 | 18 | |
18 | 19 | function execute() { |
— | — | @@ -149,11 +150,24 @@ |
150 | 151 | $wgOut->addHTML( |
151 | 152 | Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get' ) ) . |
152 | 153 | "<fieldset><legend>" . wfMsgHtml( 'code-pathsearch-legend' ) . "</legend>" . |
153 | | - Xml::hidden( 'title', $special->getPrefixedDBKey() ) . |
| 154 | + '<table width="100%"><tr><td>' . |
154 | 155 | Xml::inputlabel( wfMsg( "code-pathsearch-path" ), 'path', 'path', 55, $this->mPath ) . |
155 | | - ' ' . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" . |
156 | | - "</fieldset>" . Xml::closeElement( 'form' ) |
| 156 | + ' ' . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . |
| 157 | + '</td>' |
157 | 158 | ); |
| 159 | + if ( strlen( $this->mAppliedFilter) ) { |
| 160 | + $wgOut->addHTML( |
| 161 | + '<td>' . |
| 162 | + Xml::label(wfMsg( 'code-pathsearch-filter' ), 'revFilter' ) . '<strong>' . |
| 163 | + Xml::span( $this->mAppliedFilter, '') . '</strong> ' . |
| 164 | + Xml::submitButton( wfMsg( 'code-revfilter-clear' ) ) . |
| 165 | + '</td>' . |
| 166 | + Xml::hidden( 'title', SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ) ) |
| 167 | + ); |
| 168 | + } else { |
| 169 | + $wgOut->addHTML( Xml::hidden( 'title', $special->getPrefixedDBKey() ) ); |
| 170 | + } |
| 171 | + $wgOut->addHTML( "</tr></table></fieldset>" . Xml::closeElement( 'form' ) ); |
158 | 172 | } |
159 | 173 | |
160 | 174 | function getPager() { |
Index: trunk/extensions/CodeReview/ui/CodeRevisionStatusView.php |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | function __construct( $repoName, $status ) { |
6 | 6 | parent::__construct( $repoName ); |
7 | 7 | $this->mStatus = $status; |
| 8 | + $this->mAppliedFilter = wfMsg( 'code-revfilter-cr_status', $status ); |
8 | 9 | } |
9 | 10 | |
10 | 11 | function getPager() { |