Skip to content

Commit

Permalink
MDL-61183 user: Added total participants count on paricipants page
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan6318 committed Apr 4, 2018
1 parent bdceed1 commit 2377be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -1477,6 +1477,7 @@
$string['parentcoursenotfound'] = 'Parent course not found!';
$string['parentfolder'] = 'Parent folder';
$string['participants'] = 'Participants';
$string['participantscount'] = 'Number of participants: {$a}';
$string['participantslist'] = 'Participants list';
$string['participationratio'] = 'Participation ratio';
$string['participationreport'] = 'Participation report';
Expand Down
2 changes: 2 additions & 0 deletions user/index.php
Expand Up @@ -234,6 +234,8 @@
$participanttablehtml = ob_get_contents();
ob_end_clean();

echo html_writer::tag('p', get_string('participantscount', 'moodle', $participanttable->totalrows));

if ($bulkoperations) {
echo '<form action="action_redir.php" method="post" id="participantsform">';
echo '<div>';
Expand Down

0 comments on commit 2377be3

Please sign in to comment.