adding count to reports

adds a count for each report.
This commit is contained in:
Nicolaas 2013-02-21 09:04:21 +13:00
parent c736906016
commit 78cebe8723

View File

@ -165,9 +165,9 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
'title' => _t('ReportAdmin.ReportTitle', 'Title'),
));
$columns->setFieldFormatting(array(
'title' => '<a href=\"$Link\" class=\"cms-panel-link\">$value</a>'
));
$columns->setFieldFormatting(array(
'title' => '<a href=\"$Link\" class=\"cms-panel-link\">$value ($Count)</a>'
));
$gridField->addExtraClass('all-reports-gridfield');
$fields->push($gridField);
}
@ -181,4 +181,4 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
return $form;
}
}
}