Index: trunk/extensions/LiquidThreads/i18n/Lqt.i18n.php |
— | — | @@ -157,6 +157,7 @@ |
158 | 158 | 'lqt-thread-edited-author'=> 'Edited by author', |
159 | 159 | 'lqt-thread-edited-others'=> 'Edited by other users', |
160 | 160 | 'lqt-header-actions' => 'Actions', |
| 161 | + 'lqt_summarize_link' => 'Summarize', |
161 | 162 | |
162 | 163 | // Logging |
163 | 164 | 'lqt-log-name' => 'Threaded discussion log', |
Index: trunk/extensions/LiquidThreads/classes/LqtView.php |
— | — | @@ -569,6 +569,12 @@ |
570 | 570 | $commands['history'] = array( 'label' => wfMsgExt( 'history_short', 'parseinline' ), |
571 | 571 | 'href' => $history_url, |
572 | 572 | 'enabled' => true ); |
| 573 | + |
| 574 | + $commands['summarize'] = array( |
| 575 | + 'label' => wfMsgExt( 'lqt_summarize_link', 'parseinline' ), |
| 576 | + 'href' => self::permalinkUrl( $thread, 'summarize' ), |
| 577 | + 'enabled' => true, |
| 578 | + ); |
573 | 579 | |
574 | 580 | if ( $this->user->isAllowed( 'delete' ) ) { |
575 | 581 | $threadText = $thread->title()->getPrefixedText(); |
— | — | @@ -967,7 +973,7 @@ |
968 | 974 | wfLoadExtensionMessages( 'LiquidThreads' ); |
969 | 975 | |
970 | 976 | $permalink_text = wfMsgNoTrans( 'lqt_summary_notice_link' ); |
971 | | - $permalink = self::permalink( $thread, $permalink_text ); |
| 977 | + $permalink = self::permalink( $thread, $permalink_text, 'summarize' ); |
972 | 978 | $msg = wfMsgExt( 'lqt_summary_notice', array('parseinline', 'replaceafter'), |
973 | 979 | array( $permalink, $thread->getArchiveStartDays() ) ); |
974 | 980 | $msg = Xml::tags( 'p', array( 'class' => 'lqt_summary_notice' ), $msg ); |