GridFieldBlogPostState: Made indentation consistant

This commit is contained in:
James Cocker 2014-06-13 11:38:15 +01:00
parent 5fd07b2c17
commit 511dab9e78

View File

@ -31,17 +31,20 @@ class GridFieldBlogPostState implements GridField_ColumnProvider {
if($record->hasMethod("isPublished")) {
$published = $record->isPublished();
if(!$published) {
return _t("GridFieldBlogPostState.Draft",
return _t(
"GridFieldBlogPostState.Draft",
'<i class="btn-icon blog-icon btn-icon-pencil"></i> Saved as Draft on {date}',
"State for when a post is saved.", array(
"State for when a post is saved.",
array(
"date" => $record->dbObject("LastEdited")->Nice()
)
);
)
);
} else if (strtotime($record->PublishDate) > time()) {
return _t(
"GridFieldBlogPostState.Timer",
'<i class="blog-icon blog-icon-timer"></i> Publish at {date}',
"State for when a post is published.", array(
"State for when a post is published.",
array(
"date" => $record->dbObject("PublishDate")->Nice()
)
);