Commit Graph

28 Commits

Author SHA1 Message Date
265f1ba498 Prevent accessing file templates if not available in exercise 2021-03-10 13:51:29 +01:00
cae6721c9d Prevent last line from being deleted when editing exercises 2021-01-20 23:11:52 +01:00
ca9467bf3c Merge branch 'linter_toggle'
# Conflicts:
#	config/locales/de.yml
2020-10-15 18:33:19 +02:00
be3ec82bd4 Add new file role teacher_defined_linter 2020-10-15 00:43:57 +02:00
2678d9ecdf Add admin UI to assign tips to exercises 2020-10-14 14:34:27 +02:00
e550828c58 Add backend for tips and enable markdown support 2020-10-14 14:34:26 +02:00
d07b4f436e Add more actions to show exercise 2020-05-05 16:52:28 +02:00
427ee3e2e7 Stringify error messages for Sentry 2020-03-05 13:03:47 +01:00
74d99df070 Add JavaScript sentry 2020-03-05 10:30:57 +01:00
f680916385 remove create_new functionality, when exercise exists on CH but is not editable 2019-12-13 16:43:19 +01:00
f51dde4ef7 translations and whitespaces 2019-10-21 18:03:56 +02:00
9512fe4a79 add check_uuid_url to codeharbor_link 2019-10-20 16:20:04 +02:00
7e7be4721a wip multi-step export 2019-10-20 11:02:57 +02:00
4ab78c170e add uuid check 2019-10-16 19:19:28 +02:00
87798212ad add unpublished to views 2019-10-11 16:28:50 +02:00
b94289f36f Fix adding files to exercises (as admin)
Prevent hidden selection field from being removed after cloning the dummy. Also ensure the caret looks nice and add the file extension if possible
2018-11-29 22:32:12 +01:00
7bdb962616 Update Bootstrap to v4.1, fix chosen.js and pagedown on multiple sites 2018-11-06 16:49:41 +01:00
15b1670511 Update Turbolinks, load additional assets only on request, fix JS
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:01 +01:00
293277df6a Delete files via ajax request instead to enhance flow when editing exercises 2018-06-05 16:51:58 +02:00
7c986f2de7 fixed problem that no new files could be added to an exercise 2017-03-21 17:35:46 +01:00
b0ceeea650 fix retrieval of relative_url_root also for other calls. 2016-10-28 17:22:31 +02:00
accf0550d7 reworked the exercise edit dialog. Moved javascript part from editor_edit.js.erb to exercises.js.erb.
Manipulated some further javascript as necessary. It is not super elegant, but this is due to the former structure of the code which uses cloned dummy forms.
Integrating the ace editor made some strange calls necessary.
Also fixed toggling the input area and the file upload dialog
2016-10-12 16:35:21 +02:00
59119e43d5 added relative_url_root to some more javascript calls (ace file path, file template path). 2016-10-06 16:32:20 +02:00
58dac37d77 added relative_url_root to URL for websocket call, needed for staging server 2016-10-06 16:14:51 +02:00
f1de18141a refactored JavaScript code not to use inline Ruby evaluation 2015-03-12 09:13:38 +01:00
ff81b27fc0 removed code duplication 2015-03-10 18:27:05 +01:00
3ae749bfc5 extended execution environments by a default file type that is used as the default for associated exercises' files 2015-03-10 18:14:26 +01:00
8ef0e92914 infer file type from uploaded file 2015-03-10 11:20:48 +01:00