Permalink
Browse files

MINOR Additional HTML for tree styling in SiteTree->getTreeTitle()

  • Loading branch information...
1 parent a142e49 commit ebb1e0f370b2ccc3b568f1bd885b295e0a418083 @Silverstriper Silverstriper committed with chillu Jun 25, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −2 code/model/SiteTree.php
  2. +1 −0 templates/Includes/CMSPagesController_Content.ss
View
@@ -2412,13 +2412,13 @@ function getTreeTitle() {
} 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">

0 comments on commit ebb1e0f

Please sign in to comment.