mumuki / mumuki-laboratory

:microscope: Where students practice and receive automated and human feedback
http://mumuki.io
GNU Affero General Public License v3.0
203 stars 26 forks source link

Feature enable complements to ex students #1712

Closed flbulgarelli closed 2 years ago

flbulgarelli commented 2 years ago

:dart: Goal

To allow complements to be accessible following the same access rules as lessons with the exception of exerciseless complements.

:memo: Details

With this implementation, complements will be accessible when:

As a side improvement, "exercises" and "chapters" title was removed when they are empty.

:camera_flash: Screenshots

When guide has no exercises

image

When guide has at least one tried exercise

image

When guide has no tried exercises

image

:soon: Future Work

It would be nice that any empty content could be accessed in read-only mode. As suggested in my commits, that should move some methods to domain.