mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
ENHANCEMENT: Add Watermark for preview states (TRAC-7214)
This commit is contained in:
parent
f545f52c1a
commit
ad1f7c1f76
@ -120,6 +120,12 @@ class SilverStripeNavigatorItem extends ViewableData {
|
||||
*/
|
||||
function getHTML() {}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
* Text displayed in watermark
|
||||
*/
|
||||
function getWatermarkHTML() {}
|
||||
|
||||
/**
|
||||
* Optional link to a specific view of this record.
|
||||
* Not all items are simple links, please use {@link getHTML()}
|
||||
@ -215,6 +221,10 @@ class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem {
|
||||
}
|
||||
}
|
||||
|
||||
function getWatermarkHTML() {
|
||||
return "Draft Site";
|
||||
}
|
||||
|
||||
function getMessage() {
|
||||
return "<div id=\"SilverStripeNavigatorMessage\" title=\"". _t('ContentControl.NOTEWONTBESHOWN', 'Note: this message will not be shown to your visitors') ."\">". _t('ContentController.DRAFTSITE', 'Draft Site') ."</div>";
|
||||
}
|
||||
@ -259,6 +269,10 @@ class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem {
|
||||
}
|
||||
}
|
||||
|
||||
function getWatermarkHTML() {
|
||||
return "Published Site";
|
||||
}
|
||||
|
||||
function getMessage() {
|
||||
return "<div id=\"SilverStripeNavigatorMessage\" title=\"". _t('ContentControl.NOTEWONTBESHOWN', 'Note: this message will not be shown to your visitors') ."\">". _t('ContentController.PUBLISHEDSITE', 'Published Site') ."</div>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user