From 93b22510da84d5a26be38d480714b940869a39ed Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Wed, 16 Jul 2008 20:38:49 +0000
Subject: [PATCH] Put course code and request type in page taglines for Edit,
 Preview, and View pages.

---
 .../modules/courses/views/scripts/edit/index.phtml       | 1 +
 .../modules/courses/views/scripts/view/index.phtml       | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/application/modules/courses/views/scripts/edit/index.phtml b/application/modules/courses/views/scripts/edit/index.phtml
index df96a94e..7b3b0c66 100644
--- a/application/modules/courses/views/scripts/edit/index.phtml
+++ b/application/modules/courses/views/scripts/edit/index.phtml
@@ -2,6 +2,7 @@
 <?php $this->headScript()->appendFile($this->baseUrl() . '/tinymce/jscripts/tiny_mce/tiny_mce.js'); ?>
 <?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/tinymce.js'); ?>
 <?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/edit.js'); ?>
+<?php $this->layout()->tagline = 'Editing: ' . $this->course->getCourseCode() . ' (' . $this->request->getType() . ')'; ?>
 
 <form action="<?php echo $this->url(array('action' => 'edit.post')); ?>" enctype="multipart/form-data" method="post">
 
diff --git a/application/modules/courses/views/scripts/view/index.phtml b/application/modules/courses/views/scripts/view/index.phtml
index a422f5ce..de656ce8 100644
--- a/application/modules/courses/views/scripts/view/index.phtml
+++ b/application/modules/courses/views/scripts/view/index.phtml
@@ -1,8 +1,15 @@
 <?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/view.css'); ?>
 <?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/view.js'); ?>
+<?php
+if ($this->preview) {
+    $tagline = 'Previewing';
+} else {
+	$tagline = 'Viewing';
+}
+$this->layout()->tagline = $tagline . ': ' . $this->course->getCourseCode() . ' (' . $this->request->getType() . ')';
+?>
 
 <div id="viewRequest">
-    <h2><?php echo $this->request->getType(); ?></h2>
     <?php
         $course = $this->course;
         if ($this->parentCourse) {
-- 
GitLab