moodle-an-hochschulen / moodle-local_profilecohort

Moodle plugin which lets admins manage cohort memberships based on users' custom profile fields
GNU General Public License v3.0
23 stars 19 forks source link

show number of users in a cohort in parenthesis beside cohort name. #34

Closed onword closed 1 year ago

onword commented 3 years ago

Hello, just a small feature proposal. Under "Cohort Members" (administration -> users -> profile field based cohort membership) the cohort names are displayed as well as a dropdown arrow to the left of them. I.e.:

Cohort 1 Cohort 2 Cohort 3 etc.

I'd like to propose showing the current total number of users in each cohort in parenthesis beside the Cohort Name and dropdown arrow:

Cohort 1 (27) Cohort 2 (31) Cohort 3 (14) etc.

Thank you for this plugin.

stdoma commented 1 year ago

It would be great if the function was built into the core. I have adjusted the code that the function is given. The request is definitely relevant to several people.

abias commented 1 year ago

Hi @onword ,

your proposal makes sense.

In 495c875404c5313539bec582c88bb8172dc04457, I have just slightly improved the cohort members list and have added the number of members:

grafik

I hope you like it!

Cheers, Alex