Skip to content

Commit

Permalink
guardian in badges
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Feb 11, 2024
1 parent fb54b51 commit 715bb90
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/UI/Lessons.php
Original file line number Diff line number Diff line change
Expand Up @@ -990,12 +990,17 @@ public function renderBadges($allgrades, $buffer=false)
$lti = $this->getLtiByRlid($resource_link_id);

echo('<tr><td>');

$rest_path = U::rest_path();
$href = $rest_path->parent . '/lessons/' . urlencode($module->anchor);
$href= "Missing ". $resource_link_id;
if ($module != null ) $href = $rest_path->parent . '/lessons/' . urlencode($module->anchor);

$badge_title = "Missing ". $resource_link_id;
if ( $lti != null ) $badge_title = $lti->title;

echo('<a href="'.$href.'">');
echo('<i class="fa fa-square-o text-info" aria-hidden="true" style="label label-success; padding-right: 5px;"></i>');
echo($lti->title."</a>\n");
echo($badge_title."</a>\n");
echo('</td><td style="width: 30%; min-width: 200px;">');
echo('<a href="'.$href.'">');
echo('<div class="progress">');
Expand Down

0 comments on commit 715bb90

Please sign in to comment.