|
@@ 2244-2251 (lines=8) @@
|
| 2241 |
|
return $actions; |
| 2242 |
|
} |
| 2243 |
|
|
| 2244 |
|
if($this->isPublished() && $this->canPublish() && !$this->getIsDeletedFromStage() && $this->canUnpublish()) { |
| 2245 |
|
// "unpublish" |
| 2246 |
|
$moreOptions->push( |
| 2247 |
|
FormAction::create('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), 'delete') |
| 2248 |
|
->setDescription(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site')) |
| 2249 |
|
->addExtraClass('ss-ui-action-destructive') |
| 2250 |
|
); |
| 2251 |
|
} |
| 2252 |
|
|
| 2253 |
|
if($this->stagesDiffer('Stage', 'Live') && !$this->getIsDeletedFromStage()) { |
| 2254 |
|
if($this->isPublished() && $this->canEdit()) { |
|
@@ 2253-2261 (lines=9) @@
|
| 2250 |
|
); |
| 2251 |
|
} |
| 2252 |
|
|
| 2253 |
|
if($this->stagesDiffer('Stage', 'Live') && !$this->getIsDeletedFromStage()) { |
| 2254 |
|
if($this->isPublished() && $this->canEdit()) { |
| 2255 |
|
// "rollback" |
| 2256 |
|
$moreOptions->push( |
| 2257 |
|
FormAction::create('rollback', _t('SiteTree.BUTTONCANCELDRAFT', 'Cancel draft changes'), 'delete') |
| 2258 |
|
->setDescription(_t('SiteTree.BUTTONCANCELDRAFTDESC', 'Delete your draft and revert to the currently published page')) |
| 2259 |
|
); |
| 2260 |
|
} |
| 2261 |
|
} |
| 2262 |
|
|
| 2263 |
|
if($this->canEdit()) { |
| 2264 |
|
if($this->getIsDeletedFromStage()) { |