Skip to content

Commit

Permalink
Merge branch 'm29_MDL-49922' of https://github.com/totara/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and danpoltawski committed Apr 24, 2015
2 parents 4815e4c + 508e756 commit 1cbfb67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions badges/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ protected function render_badge_user_collection(badge_user_collection $badges) {
get_string('downloadall'), 'POST', array('class' => 'activatebadge'));

// Local badges.
$localhtml = html_writer::start_tag('fieldset', array('id' => 'issued-badge-table', 'class' => 'generalbox'));
$localhtml = html_writer::start_tag('div', array('id' => 'issued-badge-table', 'class' => 'generalbox'));
$heading = get_string('localbadges', 'badges', format_string($SITE->fullname, true, array('context' => context_system::instance())));
$localhtml .= html_writer::tag('legend', $this->output->heading_with_help($heading, 'localbadgesh', 'badges'));
$localhtml .= $this->output->heading_with_help($heading, 'localbadgesh', 'badges');
if ($badges->badges) {
$downloadbutton = $this->output->heading(get_string('badgesearned', 'badges', $badges->totalcount), 4, 'activatebadge');
$downloadbutton .= $downloadall;
Expand All @@ -491,13 +491,13 @@ protected function render_badge_user_collection(badge_user_collection $badges) {
} else {
$localhtml .= $searchform . $this->output->notification(get_string('nobadges', 'badges'));
}
$localhtml .= html_writer::end_tag('fieldset');
$localhtml .= html_writer::end_tag('div');

// External badges.
$externalhtml = "";
if (!empty($CFG->badges_allowexternalbackpack)) {
$externalhtml .= html_writer::start_tag('fieldset', array('class' => 'generalbox'));
$externalhtml .= html_writer::tag('legend', $this->output->heading_with_help(get_string('externalbadges', 'badges'), 'externalbadges', 'badges'));
$externalhtml .= html_writer::start_tag('div', array('class' => 'generalbox'));
$externalhtml .= $this->output->heading_with_help(get_string('externalbadges', 'badges'), 'externalbadges', 'badges');
if (!is_null($backpack)) {
if ($backpack->totalcollections == 0) {
$externalhtml .= get_string('nobackpackcollections', 'badges', $backpack);
Expand All @@ -513,7 +513,7 @@ protected function render_badge_user_collection(badge_user_collection $badges) {
$externalhtml .= get_string('externalconnectto', 'badges', $mybackpack->out());
}

$externalhtml .= html_writer::end_tag('fieldset');
$externalhtml .= html_writer::end_tag('div');
}

return $localhtml . $externalhtml;
Expand Down

0 comments on commit 1cbfb67

Please sign in to comment.