diff --git a/include/tw/cis_menu_lv.inc.php b/include/tw/cis_menu_lv.inc.php index ee516d123..f35b51824 100644 --- a/include/tw/cis_menu_lv.inc.php +++ b/include/tw/cis_menu_lv.inc.php @@ -457,14 +457,28 @@ function checkZeilenUmbruch() //Gesamtnote if($is_lector && ((!defined('CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN') || CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN) && $angemeldet)) { - $menu[]=array - ( - 'id'=>'core_menu_gesamtnote', - 'position'=>'80', - 'name'=>$p->t('lehre/gesamtnote'), - 'icon'=>'../../../skin/images/button_endnote.png', - 'link'=>'benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem) - ); + if($lv_obj->benotung) + { + $menu[]=array + ( + 'id'=>'core_menu_gesamtnote', + 'position'=>'80', + 'name'=>$p->t('lehre/gesamtnote'), + 'icon'=>'../../../skin/images/button_endnote.png', + 'link'=>'benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem) + ); + } + else + { + $menu[]=array + ( + 'id'=>'core_menu_gesamtnote', + 'position'=>'80', + 'name'=>$p->t('lehre/gesamtnote'), + 'icon'=>'../../../skin/images/button_endnote.png', + 'text'=>$p->t('lehre/noteneingabedeaktiviert') + ); + } } // Studentenupload diff --git a/locale/de-AT/lehre.php b/locale/de-AT/lehre.php index 69a144ca5..4304da9d8 100755 --- a/locale/de-AT/lehre.php +++ b/locale/de-AT/lehre.php @@ -44,4 +44,5 @@ $this->phrasen['lehre/nichtzugeteilt']='Sie sind nicht zu dieser Lehrveranstaltu $this->phrasen['lehre/studienordnung']='Studienordnung'; $this->phrasen['lehre/studienplan']='Studienplan'; +$this->phrasen['lehre/noteneingabedeaktiviert']='Noteneingabe deaktiviert'; ?> diff --git a/locale/en-US/lehre.php b/locale/en-US/lehre.php index 94d66c67c..c3d0b5613 100755 --- a/locale/en-US/lehre.php +++ b/locale/en-US/lehre.php @@ -34,5 +34,5 @@ $this->phrasen['lehre/mail']='E-Mail to students'; $this->phrasen['lehre/keinMailverteiler']='There is no e-mail distribution list for the group(s) %s! The students in these groups will not receive an e-mail.'; $this->phrasen['lehre/pinboard']='Pinboard'; - +$this->phrasen['lehre/noteneingabedeaktiviert']='Grades deactivated'; ?>