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