http://www.atutor.ca/atutor/mantis/view.php?id=2850
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Fri, 24 Nov 2006 20:28:13 +0000 (20:28 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Fri, 24 Nov 2006 20:28:13 +0000 (20:28 -0000)
docs/themes/default/users/index.tmpl.php
docs/users/index.php

index 46d94f5..9339330 100644 (file)
@@ -1,7 +1,9 @@
 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
 
-<?php if (!$this->courses): ?>
-               <p><?php echo _AT('none_found'); ?> <a href="users/browse.php"><?php echo _AT('browse_courses'); ?></a>.</p>
+<?php if (!$this->courses && get_instructor_status()): ?>
+       <?php global $msg; $msg->printInfos('NO_COURSES_INST'); ?>
+<?php elseif (!$this->courses): ?>
+       <?php global $msg; $msg->printInfos('NO_COURSES'); ?>
 <?php endif; ?>
 
 <?php foreach ($this->courses as $row):?>      
index 5913f54..663c788 100644 (file)
@@ -97,7 +97,6 @@ function get_category_name($cat_id) {
        return $row['cat_name'];
 }
 
-
 $savant->assign('courses', $courses);
 
 $savant->display('users/index.tmpl.php');