From 11d9034becde761539a7fb3f85b361e9a301e5c9 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Thu, 30 Aug 2007 18:48:45 +0000 Subject: [PATCH] colorized diffs in bulletin entry preview --- application/views/sidebars/bulletinPreview.xhtml | 9 ++++++++- document_root/css/common.oss | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/application/views/sidebars/bulletinPreview.xhtml b/application/views/sidebars/bulletinPreview.xhtml index 2ba0e928..6ae4b115 100644 --- a/application/views/sidebars/bulletinPreview.xhtml +++ b/application/views/sidebars/bulletinPreview.xhtml @@ -1,4 +1,11 @@ <div id="creqNavigation"> <h4>Bulletin Preview</h4> - <?php echo $this->bulletinEntry($this->course); ?> + <?php + $originalCourse = $this->course->getParentGeneration(true); + if ($originalCourse) { + echo $this->bulletinEntryDiff($originalCourse, $this->course); + } else { + echo $this->bulletinEntry($this->course); + } + ?> </div> \ No newline at end of file diff --git a/document_root/css/common.oss b/document_root/css/common.oss index 4b8a0e77..fe4d1721 100644 --- a/document_root/css/common.oss +++ b/document_root/css/common.oss @@ -290,3 +290,17 @@ ul.horizontal_menu { } } } + +#creqSidebar { + + .bulletinEntry { + ins { + color: #080; + text-decoration: none; + } + + del { + color: #800; + } + } +} -- GitLab