Commit Graph

36 Commits

Author SHA1 Message Date
Sebastian Serth
944b455194 Introduce Dark Mode
This commit mainly changes the color definitions. Mostly, those changes are semantically equally, but there are a few changes that occurred to align the color scheme within the app.
2023-07-31 11:48:42 +02:00
Karol
90d713a1d4 fix (potential) problems with empty file_extensions 2023-02-09 18:42:24 +01:00
Sebastian Serth
8a055a0d68 Update Bootstrap from v4 to v5 2022-08-12 11:45:32 +02:00
Sebastian Serth
eb175b3b40 Fix Webpack-imported modules 2022-08-12 10:22:55 +02:00
Sebastian Serth
b98c37ae64 Rename v4 FontAwesome icons to match v5/v6 name
While FontAwesome provides aliases for all icons, we switch to the new names for consistency. See all changes at:
https://fontawesome.com/docs/web/setup/upgrade/upgrade-from-v4#icons-renamed-since-version-4
2022-08-09 14:17:32 +02:00
Sebastian Serth
d93e71dc28 Rename v5 FontAwesome icons to match v6 name
While FontAwesome provides aliases for all icons, we switch to the new names for consistency. See all changes at:
https://fontawesome.com/docs/web/setup/upgrade/whats-changed#icons-renamed-in-version-6
2022-08-09 14:17:32 +02:00
Sebastian Serth
18f05db138 Always show CSRF error message for Ajax 2021-11-23 01:37:50 +01:00
Sebastian Serth
237c225732 Add support for running CodeOcean under a subpath
* Also refactor (JavaScript) routes
2021-07-06 19:33:55 +02:00
Sebastian Serth
265f1ba498 Prevent accessing file templates if not available in exercise 2021-03-10 13:51:29 +01:00
Sebastian Serth
cae6721c9d Prevent last line from being deleted when editing exercises 2021-01-20 23:11:52 +01:00
Sebastian Serth
ca9467bf3c Merge branch 'linter_toggle'
# Conflicts:
#	config/locales/de.yml
2020-10-15 18:33:19 +02:00
Sebastian Serth
be3ec82bd4 Add new file role teacher_defined_linter 2020-10-15 00:43:57 +02:00
Sebastian Serth
2678d9ecdf Add admin UI to assign tips to exercises 2020-10-14 14:34:27 +02:00
Sebastian Serth
e550828c58 Add backend for tips and enable markdown support 2020-10-14 14:34:26 +02:00
Sebastian Serth
d07b4f436e Add more actions to show exercise 2020-05-05 16:52:28 +02:00
Sebastian Serth
427ee3e2e7 Stringify error messages for Sentry 2020-03-05 13:03:47 +01:00
Sebastian Serth
74d99df070 Add JavaScript sentry 2020-03-05 10:30:57 +01:00
Karol
f680916385 remove create_new functionality, when exercise exists on CH but is not editable 2019-12-13 16:43:19 +01:00
Karol
f51dde4ef7 translations and whitespaces 2019-10-21 18:03:56 +02:00
Karol
9512fe4a79 add check_uuid_url to codeharbor_link 2019-10-20 16:20:04 +02:00
Karol
7e7be4721a wip multi-step export 2019-10-20 11:02:57 +02:00
Karol
4ab78c170e add uuid check 2019-10-16 19:19:28 +02:00
Karol
87798212ad add unpublished to views 2019-10-11 16:28:50 +02:00
Sebastian Serth
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
Sebastian Serth
7bdb962616 Update Bootstrap to v4.1, fix chosen.js and pagedown on multiple sites 2018-11-06 16:49:41 +01:00
Sebastian Serth
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
Maximilian Grundke
293277df6a Delete files via ajax request instead to enhance flow when editing exercises 2018-06-05 16:51:58 +02:00
Thomas Hille
7c986f2de7 fixed problem that no new files could be added to an exercise 2017-03-21 17:35:46 +01:00
Ralf Teusner
b0ceeea650 fix retrieval of relative_url_root also for other calls. 2016-10-28 17:22:31 +02:00
Ralf Teusner
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
Ralf Teusner
59119e43d5 added relative_url_root to some more javascript calls (ace file path, file template path). 2016-10-06 16:32:20 +02:00
Ralf Teusner
58dac37d77 added relative_url_root to URL for websocket call, needed for staging server 2016-10-06 16:14:51 +02:00
Hauke Klement
f1de18141a refactored JavaScript code not to use inline Ruby evaluation 2015-03-12 09:13:38 +01:00
Hauke Klement
ff81b27fc0 removed code duplication 2015-03-10 18:27:05 +01:00
Hauke Klement
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
Hauke Klement
8ef0e92914 infer file type from uploaded file 2015-03-10 11:20:48 +01:00