Wrap content gridfield cell in another non-td element for styling

This commit is contained in:
Saophalkun Ponlu 2017-10-05 15:54:11 +13:00
parent e07658ef50
commit 1a324d9d77

View File

@ -82,7 +82,7 @@ class GridFieldVersionedState implements GridField_ColumnProvider
$data = array('text' => $data);
}
$flagContent .= sprintf(
"<span class=\"ss-gridfield-badge badge %s\"%s>%s</span>",
" <span class=\"ss-gridfield-badge badge %s\"%s>%s</span>",
'status-' . Convert::raw2xml($class),
(isset($data['title'])) ? sprintf(' title="%s"', Convert::raw2xml($data['title'])) : '',
Convert::raw2xml($data['text'])
@ -101,7 +101,7 @@ class GridFieldVersionedState implements GridField_ColumnProvider
*/
public function getColumnAttributes($gridField, $record, $columnName)
{
return [ 'data-contains-version-state' => true ];
return [];
}
/**