mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
GridFieldBlogPostState: Added 'Modified' tag to timer state
and adjusted code spacing.
This commit is contained in:
parent
b380f4ac11
commit
020f466bf8
@ -31,7 +31,7 @@ class GridFieldBlogPostState implements GridField_ColumnProvider {
|
||||
if($record->hasMethod("isPublished")) {
|
||||
$modifiedLabel = "";
|
||||
if($record->isModified()) {
|
||||
$modifiedLabel = "<span class='modified'>"._t("GridFieldBlogPostState.Modified")."</span>";
|
||||
$modifiedLabel = "<span class='modified'>" . _t("GridFieldBlogPostState.Modified") . "</span>";
|
||||
}
|
||||
|
||||
$published = $record->isPublished();
|
||||
@ -45,7 +45,7 @@ class GridFieldBlogPostState implements GridField_ColumnProvider {
|
||||
"State for when a post is published.", array(
|
||||
"date" => $record->dbObject("PublishDate")->Nice()
|
||||
)
|
||||
);
|
||||
) . $modifiedLabel;
|
||||
} else {
|
||||
return _t(
|
||||
"GridFieldBlogPostState.Published",
|
||||
@ -54,7 +54,7 @@ class GridFieldBlogPostState implements GridField_ColumnProvider {
|
||||
array(
|
||||
"date" => $record->dbObject("PublishDate")->Nice()
|
||||
)
|
||||
).$modifiedLabel;
|
||||
) . $modifiedLabel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user