Commit Graph

11 Commits

Author SHA1 Message Date
9a9efd5caa Lint Slim files and fix offenses
The fixing was partially done manually and partially automatically.
2024-04-18 08:31:24 +02:00
b43dfa364e Improve LTI handling for InternalUsers 2023-11-23 14:42:10 +01:00
e2baa2ee55 Send score for all members of a programming group 2023-08-24 19:32:06 +02:00
145c4aa8d5 Refactor various ruby files
* Insights based on brakeman report
2022-08-18 15:25:04 +02:00
f9a7e73719 Remove usage of safe_html in renderings 2021-10-12 11:23:22 +02:00
53fa0bd35d remove absolute points from user interface 2018-06-19 13:07:12 +02:00
9d3167fe2c remove errornous line of code 2018-03-01 19:14:46 +01:00
41a61a8507 Fixed the destroy session logic.
1. an exercise_id is provided ==> only the LtiParameter object for the current user, consumer, and exercise is deleted.
2. no exercise_id is provided ==> external user and consumer are removed from the session, all LtiParameter objects for this user and consumer are deleted.

This enables users to have several tabs with exercises open and submitting the results to the tool consumer.
When an exercise has been submitted, the user cannot use the back button to get back to CodeOcean and work on the submitted or any other exercise.
For now a warning has been added to the info text to tell users not to do this. (As the LtiParameters have been deleted, the points can no more be submitted to the consumer.)
@TODO disable/redirect back button?
2016-12-31 17:21:46 +01:00
cb98ef50fb Disable average count as this breaks on some exercises... 2015-04-13 16:25:48 +02:00
f0ca3b6e82 improved readability 2015-02-23 17:19:09 +01:00
4cbf9970b1 transferred Code Ocean from original repository to GitHub 2015-01-22 10:01:32 +01:00