mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Additional HTML for tree styling in SiteTree->getTreeTitle()
This commit is contained in:
parent
a142e494de
commit
ebb1e0f370
@ -2412,13 +2412,13 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
} elseif($this->IsAddedToStage) {
|
||||
$tag = "ins title=\"" . _t('SiteTree.ADDEDTODRAFT', 'Added to draft site') . "\"";
|
||||
} elseif($this->IsModifiedOnStage) {
|
||||
$tag = "span title=\"" . _t('SiteTree.MODIFIEDONDRAFT', 'Modified on draft site') . "\" class=\"modified\"";
|
||||
$tag = "span title=\"" . _t('SiteTree.MODIFIEDONDRAFT', 'Modified on draft site') . "\" class=\"status modified\"";
|
||||
} else {
|
||||
$tag = '';
|
||||
}
|
||||
|
||||
$text = Convert::raw2xml(str_replace(array("\n","\r"),"",$this->MenuTitle));
|
||||
return ($tag) ? "<$tag>" . $text . "</" . strtok($tag,' ') . ">" : $text;
|
||||
return ($tag) ? "<span class=\"jstree-pageicon\"></span>"."<$tag>" . $text . "</" . strtok($tag,' ') . ">" : "<span class=\"jstree-pageicon\"></span>". $text;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -28,6 +28,7 @@
|
||||
$SearchForm
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cms-content-fields center ui-widget-content">
|
||||
|
Loading…
Reference in New Issue
Block a user