public function getTableAttributeHtml(BaseElementModel $element, $attribute)
{
switch ($attribute) {
case 'publisher':
case 'editor':
if ($element->{$attribute}) {
return "<a href='" . $element->{$attribute}->cpEditUrl . "'>" . $element->{$attribute} . "</a>";
}
case 'dateApproved':
case 'dateRejected':
if (!$element->{$attribute}) {
return "-";
}
default:
return parent::getTableAttributeHtml($element, $attribute);
}
}