@@ -52,7 +52,6 @@ public function __construct()
52
52
* Prepare grid collection
53
53
*
54
54
* @return $this
55
- * @throws Exception
56
55
*/
57
56
protected function _prepareCollection ()
58
57
{
@@ -67,7 +66,6 @@ protected function _prepareCollection()
67
66
* Add name and description to collection elements
68
67
*
69
68
* @return $this
70
- * @throws Mage_Core_Exception
71
69
*/
72
70
protected function _afterLoadCollection ()
73
71
{
@@ -91,10 +89,10 @@ protected function _afterLoadCollection()
91
89
* Prepare grid columns
92
90
*
93
91
* @return $this
94
- * @throws Exception
95
92
*/
96
93
protected function _prepareColumns ()
97
94
{
95
+ $ baseUrl = $ this ->getUrl ();
98
96
$ this ->addColumn ('indexer_code ' , [
99
97
'header ' => Mage::helper ('index ' )->__ ('Index ' ),
100
98
'width ' => '180 ' ,
@@ -185,16 +183,16 @@ public function decorateStatus($value, $row, $column, $isExport)
185
183
$ class = '' ;
186
184
switch ($ row ->getStatus ()) {
187
185
case Mage_Index_Model_Process::STATUS_PENDING :
188
- $ class = self :: CSS_SEVERITY_NOTICE ;
186
+ $ class = ' grid-severity-notice ' ;
189
187
break ;
190
188
case Mage_Index_Model_Process::STATUS_RUNNING :
191
- $ class = self :: CSS_SEVERITY_MAJOR ;
189
+ $ class = ' grid-severity-major ' ;
192
190
break ;
193
191
case Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX :
194
- $ class = self :: CSS_SEVERITY_CRITICAL ;
192
+ $ class = ' grid-severity-critical ' ;
195
193
break ;
196
194
}
197
- return sprintf ( self :: PATTERN_SEVERITY , $ class, $ value) ;
195
+ return ' <span class=" ' . $ class . ' "><span> ' . $ value . ' </span></span> ' ;
198
196
}
199
197
200
198
/**
@@ -212,13 +210,13 @@ public function decorateUpdateRequired($value, $row, $column, $isExport)
212
210
$ class = '' ;
213
211
switch ($ row ->getUpdateRequired ()) {
214
212
case 0 :
215
- $ class = self :: CSS_SEVERITY_NOTICE ;
213
+ $ class = ' grid-severity-notice ' ;
216
214
break ;
217
215
case 1 :
218
- $ class = self :: CSS_SEVERITY_CRITICAL ;
216
+ $ class = ' grid-severity-critical ' ;
219
217
break ;
220
218
}
221
- return sprintf ( self :: PATTERN_SEVERITY , $ class, $ value) ;
219
+ return ' <span class=" ' . $ class . ' "><span> ' . $ value . ' </span></span> ' ;
222
220
}
223
221
224
222
/**
0 commit comments