@@ -52,7 +52,6 @@ public function __construct()
5252 * Prepare grid collection
5353 *
5454 * @return $this
55- * @throws Exception
5655 */
5756 protected function _prepareCollection ()
5857 {
@@ -67,7 +66,6 @@ protected function _prepareCollection()
6766 * Add name and description to collection elements
6867 *
6968 * @return $this
70- * @throws Mage_Core_Exception
7169 */
7270 protected function _afterLoadCollection ()
7371 {
@@ -91,10 +89,10 @@ protected function _afterLoadCollection()
9189 * Prepare grid columns
9290 *
9391 * @return $this
94- * @throws Exception
9592 */
9693 protected function _prepareColumns ()
9794 {
95+ $ baseUrl = $ this ->getUrl ();
9896 $ this ->addColumn ('indexer_code ' , [
9997 'header ' => Mage::helper ('index ' )->__ ('Index ' ),
10098 'width ' => '180 ' ,
@@ -185,16 +183,16 @@ public function decorateStatus($value, $row, $column, $isExport)
185183 $ class = '' ;
186184 switch ($ row ->getStatus ()) {
187185 case Mage_Index_Model_Process::STATUS_PENDING :
188- $ class = self :: CSS_SEVERITY_NOTICE ;
186+ $ class = ' grid-severity-notice ' ;
189187 break ;
190188 case Mage_Index_Model_Process::STATUS_RUNNING :
191- $ class = self :: CSS_SEVERITY_MAJOR ;
189+ $ class = ' grid-severity-major ' ;
192190 break ;
193191 case Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX :
194- $ class = self :: CSS_SEVERITY_CRITICAL ;
192+ $ class = ' grid-severity-critical ' ;
195193 break ;
196194 }
197- return sprintf ( self :: PATTERN_SEVERITY , $ class, $ value) ;
195+ return ' <span class=" ' . $ class . ' "><span> ' . $ value . ' </span></span> ' ;
198196 }
199197
200198 /**
@@ -212,13 +210,13 @@ public function decorateUpdateRequired($value, $row, $column, $isExport)
212210 $ class = '' ;
213211 switch ($ row ->getUpdateRequired ()) {
214212 case 0 :
215- $ class = self :: CSS_SEVERITY_NOTICE ;
213+ $ class = ' grid-severity-notice ' ;
216214 break ;
217215 case 1 :
218- $ class = self :: CSS_SEVERITY_CRITICAL ;
216+ $ class = ' grid-severity-critical ' ;
219217 break ;
220218 }
221- return sprintf ( self :: PATTERN_SEVERITY , $ class, $ value) ;
219+ return ' <span class=" ' . $ class . ' "><span> ' . $ value . ' </span></span> ' ;
222220 }
223221
224222 /**
0 commit comments