Commit Graph

22621 Commits

Author SHA1 Message Date
Victor Shnayder
2723f0519d Fix render of lms index with no chapter or section. 2012-06-21 11:05:31 -04:00
Victor Shnayder
b5368f2a4f Initial progress display.
* add module_from_xml param to I4xSystem
* use it to implement xmodule.get_children()
* fix a few comments here and there
* Render-time progress display for seq and vertical modules.
  - Computes fraction of subproblems done.
* Pass problem state back to js during ajax calls.
* general cleanup in capa_module.py
* add progress_changed and progress fields to json returned from each ajax handler

* Coffeescript changes to hook up sequence tracking of problem progress

* net result: sequence 'a' tags now have a progress class
* properly set css class on initial load
* fire event when progress changes after ajax calls
* also save state in 'progress' property of problems-wrapper tag
* event handler finds those tags, computes updated progress
2012-06-21 11:05:30 -04:00
Victor Shnayder
4a6722778e remove obsolete comment 2012-06-21 11:05:30 -04:00
Victor Shnayder
40871e0eed Fix accordion rendering bug
* needed to clean the chapter and section vars before rendering
2012-06-21 11:05:30 -04:00
Prem Sichanugrist
3e2031cd43 Update jQuery and jQuery-UI to latest version 2012-06-21 11:05:30 -04:00
Calen Pennington
d147638d07 Switch the cms over to using django-pipeline 2012-06-21 11:05:29 -04:00
Calen Pennington
d8d22ea57b Make tests pass when running on cms 2012-06-21 11:05:27 -04:00
Victor Shnayder
2aa6193a00 put lambda function back in, as requested during code review 2012-06-21 11:05:27 -04:00
Piotr Mitros
0a7542c281 Courseware can have same random seed in multiple problems for exam. Slight hack. 2012-06-21 11:05:26 -04:00
Victor Shnayder
d485b9be9e Small cleanups in response to Calen + Piotr's comments 2012-06-21 11:05:26 -04:00
Victor Shnayder
7358b01cc4 Clean and refactor courseware/views.py and module_render.py
* Refactor index() so that it makes sense to me and hopefully others :)
* Rename preloaded cache of student modules to student_module_cache
* Fix line length and whitespace throughout
* add docstrings and other comments
* a few behavior-preserving tweaks to the code to make it clearer.
* Separate codepaths for with-module and without-module in index view
* Remove default chapter + section, since they don't exist anyway in course.xml
2012-06-21 11:05:26 -04:00
Victor Shnayder
30f6db8e20 fix typo in comment in student view 2012-06-21 11:05:25 -04:00
Prem Sichanugrist
8dc28549c2 Use existential operator 2012-06-21 11:05:25 -04:00
Kyle Fiedler
2d97c0fc05 Added volume images 2012-06-21 11:05:25 -04:00
Kyle Fiedler
66b2e58fc9 Added some styles to clean up volume slider 2012-06-21 11:05:25 -04:00
Prem Sichanugrist
8fc84000a8 Make sure we don't show volume control on iOS 2012-06-21 11:05:24 -04:00
Prem Sichanugrist
19e97de0fb Add video volume control to video player 2012-06-21 11:05:24 -04:00
Prem Sichanugrist
e04329f486 Be specific on video progress slider handle
Using `.ui-slider-handle` was too broad.
2012-06-21 11:05:24 -04:00
Prem Sichanugrist
64b4a4a0fe Create Calculator and Feedback form on every page 2012-06-21 11:05:24 -04:00
Victor Shnayder
0a66d0eab9 clarify docstring for modx_dispatch 2012-06-21 11:05:23 -04:00
Victor Shnayder
53078665ee add README.md for dogfood 2012-06-21 11:05:23 -04:00
Victor Shnayder
e013837ab1 add function docs to module_render.py 2012-06-21 11:05:23 -04:00
Prem Sichanugrist
59a13e861b Cleanup show answer code 2012-06-21 11:05:22 -04:00
ichuang
e4cf0ac835 problem.coffee : queue mathjax typesetting just once 2012-06-21 11:05:22 -04:00
ichuang
b273b6ed9f fix dogfood -> use CorrectMap 2012-06-21 11:05:21 -04:00
ichuang
bc881e73d9 add MITX_FEATURES['DISPLAY_HISTOGRAMS_TO_STAFF'] flag to settings 2012-06-21 11:05:21 -04:00
ichuang
cd5a4314e2 django pipeline working now (with new pip -e git+git...) 2012-06-21 11:05:20 -04:00
ichuang
21e2ebee8b problem.coffee change: show answer -> also show solution_* & do mathjax typeset 2012-06-21 11:05:19 -04:00
ichuang
b8408a1529 first pass in capa cleanup:
- responsetype used to be instantiated multiple times(!) in capa_problem
     now it is instantiated once, and stored in self.responders
   - responsetypes.GenericResponse restructured; each superclass
     show now provide setup_response (and not __init__), and may
     provide get_max_score(); general __init__ provided to
     clean up superclasses.
2012-06-21 11:05:19 -04:00
Calen Pennington
9089596fad Allow login in the cms, and read a particular course from mongo 2012-06-21 11:05:19 -04:00
Calen Pennington
5ff05f7a95 Get the cms up to the point of rendering a template 2012-06-21 11:05:19 -04:00
Calen Pennington
e845221f4a Make mitxmako available to both the lms and the cms 2012-06-21 11:05:19 -04:00
Matthew Mongeau
3606ddbfdb Got basic login working 2012-06-21 11:05:18 -04:00
Matthew Mongeau
11e19d1260 wip 2012-06-21 11:05:18 -04:00
Matthew Mongeau
dc5cf5f319 Point login form to login. 2012-06-21 11:05:18 -04:00
Matthew Mongeau
d757054460 Modal wip 2012-06-21 11:05:18 -04:00
Matthew Mongeau
6297e1df23 wip modal 2012-06-21 11:05:18 -04:00
ichuang
a892752b89 add 18.06x to dev_ike.py 2012-06-20 22:16:35 -04:00
Victor Shnayder
63b3999ef1 Big refactor of content_parser
* Separate out all xml processing code from django code
* Preparing to move the content parsing parts into common/lib/xmodule (?)
2012-06-20 19:16:55 -04:00
Galen Frechette
78b0e86334 cleans up login modal and adds js for toggling login modal 2012-06-20 18:37:07 -04:00
Galen Frechette
ec1510ca52 adds login modal 2012-06-20 16:20:31 -04:00
Victor Shnayder
5e7535fbfb Progress tracking cleanup.
* use clearer names for the two status strings passed to js
* add functions to do canonical conversion of progress to js string
* fix updating bug in sequence.coffee
* add some todo comments and other docs to make future expansion easier
2012-06-20 16:04:03 -04:00
Victor Shnayder
85bee9b42b Initial UI for sequence progress.
* change bottom border of links:
  red for not started
  yellow for in_progress
  green for done

* This should probably be designed at some point.
* Obvious problems: the yellow is not very visible, and lots of people are
  red/green color-blind.
2012-06-20 16:04:03 -04:00
Calen Pennington
215085345c Fix other references to jquery after update to latest version 2012-06-20 15:06:49 -04:00
Galen Frechette
94886643b0 gets app completly uptodate with prototype 2012-06-20 14:37:37 -04:00
Victor Shnayder
b24c4d4626 Fix render of lms index with no chapter or section. 2012-06-20 11:31:21 -04:00
Calen Pennington
c317521468 Merge pull request #126 from MITx/victor/progress-tracking
Victor/progress tracking
2012-06-20 07:33:48 -07:00
Calen Pennington
7710e7a6a4 Merge pull request #125 from MITx/victor/fix_accordion
Fix accordion rendering bug
2012-06-20 05:36:41 -07:00
Calen Pennington
65d02819e8 Merge pull request #124 from MITx/cpennington/cms-pipeline
Switch cms over to django pipeline
2012-06-20 05:35:49 -07:00
Victor Shnayder
b963d8b534 Initial progress display.
* add module_from_xml param to I4xSystem
* use it to implement xmodule.get_children()
* fix a few comments here and there
* Render-time progress display for seq and vertical modules.
  - Computes fraction of subproblems done.
* Pass problem state back to js during ajax calls.
* general cleanup in capa_module.py
* add progress_changed and progress fields to json returned from each ajax handler

* Coffeescript changes to hook up sequence tracking of problem progress

* net result: sequence 'a' tags now have a progress class
* properly set css class on initial load
* fire event when progress changes after ajax calls
* also save state in 'progress' property of problems-wrapper tag
* event handler finds those tags, computes updated progress
2012-06-19 18:28:45 -04:00