bfh / moodle-quiz_archive

GNU General Public License v3.0
4 stars 3 forks source link

Show "There are no attempts to show" (quiz|noattemptstoshow) when no attempts are there. #14

Closed lucaboesch closed 1 year ago

lucaboesch commented 1 year ago

Now when there are ☐ Include response history table ☐ Include correct answer banner options and the "Show report" button it is weird if an empty page reloads as soon as "Show report" is pressed when there are no quiz attempts at all.

PhilippImhof commented 1 year ago

Good point. I'll take care of that, if you don't mind.

lucaboesch commented 1 year ago

That would be lovely, yes! I saw at https://github.com/bfh/moodle-quiz_archive/blob/941f4f1666a3c0cd5d8479012e30b38974146c40/archive_table.php#L67 this is something you might be able to reuse.