Commit Graph

1216 Commits

Author SHA1 Message Date
Sebastian Serth
c4f9c2fc85 Prevent redirection if possible
This will just show the flash message on prevent the browser from changing the location. Works great with Turbolinks!
2018-11-22 19:00:01 +01:00
Ralf Teusner
0fbbe97ae4 revert 8acd77d9c4 2018-11-16 10:38:36 +01:00
rteusner
d7dcbdc799 Merge pull request #200 from openHPI/remove-ab-tests
Remove ab tests
2018-11-15 18:02:34 +01:00
Ralf Teusner
9507bdb329 cleanup duplicate code 2018-11-15 17:15:57 +01:00
Ralf Teusner
23bb698f74 Fix retrieval of user_exercise_feedback and exercise 2018-11-15 16:54:30 +01:00
Ralf Teusner
8acd77d9c4 temporary changes to render pictures again. 2018-11-13 13:07:49 +01:00
Sebastian Serth
d06ed21171 Restyle user exercise feedback to look nicer (not nice) 2018-11-06 17:18:27 +01:00
Sebastian Serth
572a1405c3 Prevent font size change for buttons with class btn-lg 2018-11-06 16:49:45 +01:00
Sebastian Serth
78037ab37a Increase font weight for headings, reduce size of result card headings 2018-11-06 16:49:44 +01:00
Sebastian Serth
cc48361a15 Remove unused scrollbars in /implement 2018-11-06 16:49:44 +01:00
Sebastian Serth
248c3214cb Move font-weight 2018-11-06 16:49:44 +01:00
Sebastian Serth
c44478783a Fix bootstrap CSS issues in Safari and Chrome 2018-11-06 16:49:44 +01:00
Sebastian Serth
d7befd60e5 Change button on implement page to be gray if score cannot be submitted 2018-11-06 16:49:43 +01:00
Sebastian Serth
dd0f56659e Use webpack to deliver newest d3-tip.js, highlight.js and vis.js 2018-11-06 16:49:43 +01:00
Sebastian Serth
72d0f7585e Use webpack to deliver Google openSans (and use newest version) 2018-11-06 16:49:43 +01:00
Sebastian Serth
3ecb5bd778 Use webpack to deliver font-awesome (and use newest version) 2018-11-06 16:49:43 +01:00
Sebastian Serth
9e4f9263e6 Use webpack to deliver jquery-ui (and use newest version) 2018-11-06 16:49:42 +01:00
Sebastian Serth
8faacd5577 Use webpack to deliver underscore (and use newest version) 2018-11-06 16:49:42 +01:00
Sebastian Serth
53e7739e05 Use webpack to deliver jstree (and use newest version)
Also delete bootstrap files now served via webpack
2018-11-06 16:49:42 +01:00
Sebastian Serth
41bd5bac10 Convert .html.erb templates to .html.slim 2018-11-06 16:49:42 +01:00
Sebastian Serth
1bed13d941 Remove useless .keep files 2018-11-06 16:49:41 +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
4d1cf972e4 Include Webpack and use it for jQuery, Bootstrap and chosen.js 2018-11-06 16:46:01 +01:00
Sebastian Serth
9666683bd7 Fix error, submission, hints and help views 2018-11-06 16:46:01 +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
Sebastian Serth
a77a006e8d Update CSRF chain to prepend checks and resolve comments from PR
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:01 +01:00
Sebastian Serth
de52db89f0 Upgrade Rails to version 5.2.1 and adopt code & specs where necessary
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:00 +01:00
Sebastian Serth
ac31afbd2a Clean Gemfile and perform bundle update
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:45:59 +01:00
rteusner
772f4ad204 Merge pull request #223 from openHPI/jg/fix-editor-active-file
Jg/fix editor active file
2018-10-19 15:45:34 +02:00
rteusner
17d20e2f5b Merge pull request #219 from jgraichen/fix/dot
Fix missing dot (fixes #218)
2018-10-19 15:32:45 +02:00
Ralf Teusner
574e870bd1 fix reset for user created files (where therefore no original file is available) 2018-10-19 15:27:14 +02:00
Ralf Teusner
730d5541bd allow running, testing and scoring of files in subfolders by using the full filepath 2018-10-19 15:25:05 +02:00
Jan Graichen
629c925e77 Fix setting active file in editor
The file select hook did construct an active_file but did not
assign it to the actual variables. This commit changes the hook to
use the existing setActiveFile helper function.
2018-10-19 12:34:12 +02:00
Jan Graichen
db9557108c Fix missing dot
Actually call replace on the filename.
2018-10-18 21:03:46 +02:00
Ralf Teusner
131f610116 call text() again to prevent execution of javascript 2018-10-16 17:20:58 +02:00
Maximilian Grundke
2bb5ea138c Display branch and commit info in dashboard 2018-10-10 13:41:05 +02:00
Franz Liedke
4e6d7f8b8a Order files by name by default
Explicit ordering in the view (!) is now no longer necessary.
2018-09-30 00:40:21 +02:00
rteusner
c1bcc0c95c Update exercises_controller.rb
? "true" : "false" --> .to_s
2018-09-24 17:04:32 +02:00
Maximilian Grundke
816c6fcbf6 Fix highlighting for submissions occurring in the same second 2018-08-31 14:11:10 +02:00
Maximilian Grundke
fc02c4fe56 Refactor 2018-08-31 14:10:03 +02:00
Maximilian Grundke
98344a109e Fix overlap bug that occurred after mixing interventions and submissions 2018-08-31 13:42:25 +02:00
Maximilian Grundke
10945b6a09 Extract formating method to time helper 2018-08-31 13:41:40 +02:00
Maximilian Grundke
159e587254 Show working time until intervention 2018-08-31 13:41:15 +02:00
Sebastian Serth
6bd1dac756 Performance Optimizations:
1. Add index on testrun.submissionId
2. replace lti_parameters.size with lti_parameters.present? to prevent COUNT query

Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-08-23 17:29:14 +02:00
rteusner
40492479ba Merge pull request #204 from openHPI/fix/save-exercise-collections
Fix saving new exercise collections with exercises
2018-08-22 14:22:00 +02:00
Maximilian Grundke
b5c3ce2113 Delete related exercise collection items when deleting exercises or collections 2018-08-22 13:47:27 +02:00
Maximilian Grundke
11dc48dc96 Fix creating exercise collections with exercises 2018-08-22 13:41:23 +02:00
rteusner
8b7e43f9db Merge pull request #203 from openHPI/fix/save-exercise-collections
Fix saving exercise collections
2018-08-22 09:39:40 +02:00
Maximilian Grundke
16933632ae Fix saving exercise collections 2018-08-20 16:38:10 +02:00
Maximilian Grundke
eb2af34543 Cache rendered templates 2018-08-20 14:59:40 +02:00