This commit is contained in:
Peter-Martijn Kuipers 2022-06-26 20:57:42 +02:00
parent 2d4ce38cbd
commit 3c14d03fed

View File

@ -68,12 +68,12 @@ class block_mytreestudyplan extends \block_base {
if($teachermode){ if($teachermode){
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudylan/view-plans.php'>".get_string("view_plan","local_treestudyplan")."</a>"; $this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/view-plans.php'>".get_string("view_plan","local_treestudyplan")."</a>";
if(has_capability("local/treestudyplan:editstudyplan",$systemcontext)){ if(has_capability("local/treestudyplan:editstudyplan",$systemcontext)){
$this->content->footer .= "&nbsp; <a class='btn btn-primary' href='{$invite_url}'>".get_string("cfg_plans","local_treestudyplan")."</a>"; $this->content->footer .= "&nbsp; <a class='btn btn-primary' href='{$invite_url}'>".get_string("cfg_plans","local_treestudyplan")."</a>";
} }
} else if (count($mystudyplans) > 0) { } else if (count($mystudyplans) > 0) {
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudylan/edit-plans.php' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>"; $this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/edit-plans.php' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>";
} }
return $this->content; return $this->content;