From 3d95bdb76f886c15dcc17e5436ce0ee9f88b3765 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 11 Aug 2003 05:38:28 +0000 Subject: [PATCH] Show course access (guest, password etc) on non-editing screens --- course/category.php | 23 ++++++++++++++++++----- lang/en/moodle.php | 1 + 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/course/category.php b/course/category.php index 14819b44ac..bac0ae985e 100644 --- a/course/category.php +++ b/course/category.php @@ -204,7 +204,7 @@ } else { $strcourses = get_string("courses"); - $strmove = get_string("move"); + $strselect = get_string("select"); $stredit = get_string("edit"); $strdelete = get_string("delete"); $strbackup = get_string("backup"); @@ -214,6 +214,8 @@ $strhide = get_string("hide"); $strshow = get_string("show"); $strassignteachers = get_string("assignteachers"); + $strallowguests = get_string("allowguests"); + $strrequireskey = get_string("requireskey"); if (empty($THEME->custompix)) { $pixpath = "$CFG->wwwroot/pix"; @@ -228,8 +230,10 @@ if ($creatorediting) { echo "$stredit"; if ($adminediting) { - echo "$strmove"; + echo "$strselect"; } + } else { + echo " "; } echo ""; @@ -280,12 +284,21 @@ echo "id\">"; $abletomovecourses = true; - } else if (isteacher($course->id)) { + } else if (isteacher($course->id)) { echo ""; echo "wwwroot/$CFG->admin/teacher.php?id=$course->id\"> "; - } - echo ""; + } + echo ""; + } else { + echo ""; + if ($course->guest ) { + echo "\"\""; + } + if ($course->password) { + echo "\"\""; + } + echo ""; } echo ""; } diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 9c06396366..c7e5b031a7 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -632,6 +632,7 @@ $string['sec'] = "sec"; $string['secs'] = "secs"; $string['section'] = "Section"; $string['sections'] = "Sections"; +$string['select'] = "Select"; $string['selectacountry'] = "Select a country"; $string['selectednowmove'] = "\$a files selected for moving. Now go to the destination and press 'Move files to here'"; $string['senddetails'] = "Send my details via email"; -- 2.39.5