Bugfix
This commit is contained in:
parent
3c14d03fed
commit
17ae050066
|
@ -68,12 +68,12 @@ class block_mytreestudyplan extends \block_base {
|
||||||
|
|
||||||
|
|
||||||
if($teachermode){
|
if($teachermode){
|
||||||
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/view-plans.php'>".get_string("view_plan","local_treestudyplan")."</a>";
|
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/view-plan.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 .= " <a class='btn btn-primary' href='{$invite_url}'>".get_string("cfg_plans","local_treestudyplan")."</a>";
|
$this->content->footer .= " <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/treestudyplan/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-plan.php' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->content;
|
return $this->content;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user