Commit Graph

76 Commits

Author SHA1 Message Date
David Ormsbee
3f1c2e2aba add corresponding view to new courseware url route :-P 2012-06-21 10:59:48 -04:00
David Ormsbee
fe4b0aed5e add url route to new courseware 2012-06-21 10:59:48 -04:00
David Ormsbee
bc8c077379 Add info page support with multiple courses 2012-06-21 10:59:48 -04:00
David Ormsbee
3859c2be19 Add scanning of data directory for courses.
These are then displayed at /courses.
2012-06-21 10:59:48 -04:00
Victor Shnayder
a47459512d 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-21 10:59:48 -04:00
Victor Shnayder
5a99ef5ac0 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-21 10:59:48 -04:00
Calen Pennington
279332e217 Fix other references to jquery after update to latest version 2012-06-21 10:59:47 -04:00
Victor Shnayder
91befca89c Fix render of lms index with no chapter or section. 2012-06-21 10:59:47 -04:00
Victor Shnayder
04dd8ee6d1 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 10:59:47 -04:00
Victor Shnayder
e6250f8114 remove obsolete comment 2012-06-21 10:59:47 -04:00
Victor Shnayder
762132b18c Fix accordion rendering bug
* needed to clean the chapter and section vars before rendering
2012-06-21 10:59:46 -04:00
Prem Sichanugrist
1870160f37 Update jQuery and jQuery-UI to latest version 2012-06-21 10:59:46 -04:00
Calen Pennington
4cb285f1f9 Switch the cms over to using django-pipeline 2012-06-21 10:59:46 -04:00
Calen Pennington
b6514fa5eb Make tests pass when running on cms 2012-06-21 10:59:44 -04:00
Victor Shnayder
d7a8679aae put lambda function back in, as requested during code review 2012-06-21 10:59:44 -04:00
Piotr Mitros
8516d631dc Courseware can have same random seed in multiple problems for exam. Slight hack. 2012-06-21 10:59:43 -04:00
Victor Shnayder
6003fee9f9 Small cleanups in response to Calen + Piotr's comments 2012-06-21 10:59:43 -04:00
Victor Shnayder
b5536d98d7 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 10:59:43 -04:00
Victor Shnayder
5f2c029477 fix typo in comment in student view 2012-06-21 10:59:42 -04:00
Prem Sichanugrist
432a8e5fd8 Use existential operator 2012-06-21 10:59:42 -04:00
Kyle Fiedler
a5f0f38d35 Added volume images 2012-06-21 10:59:42 -04:00
Kyle Fiedler
e768680f59 Added some styles to clean up volume slider 2012-06-21 10:59:42 -04:00
Prem Sichanugrist
6facc631a2 Make sure we don't show volume control on iOS 2012-06-21 10:59:42 -04:00
Prem Sichanugrist
f2cc2fc54c Add video volume control to video player 2012-06-21 10:59:41 -04:00
Prem Sichanugrist
7159041947 Be specific on video progress slider handle
Using `.ui-slider-handle` was too broad.
2012-06-21 10:59:41 -04:00
Prem Sichanugrist
dd0c41cd15 Create Calculator and Feedback form on every page 2012-06-21 10:59:41 -04:00
Victor Shnayder
792443ca80 clarify docstring for modx_dispatch 2012-06-21 10:59:40 -04:00
Victor Shnayder
49ba94e96b add README.md for dogfood 2012-06-21 10:59:40 -04:00
Victor Shnayder
25ac073fb8 add function docs to module_render.py 2012-06-21 10:59:40 -04:00
Prem Sichanugrist
66f8225763 Cleanup show answer code 2012-06-21 10:59:39 -04:00
ichuang
73c1255198 problem.coffee : queue mathjax typesetting just once 2012-06-21 10:59:39 -04:00
ichuang
f3c328dd18 fix dogfood -> use CorrectMap 2012-06-21 10:59:38 -04:00
ichuang
9edc6bbd43 add MITX_FEATURES['DISPLAY_HISTOGRAMS_TO_STAFF'] flag to settings 2012-06-21 10:59:38 -04:00
ichuang
d56e6e1a11 django pipeline working now (with new pip -e git+git...) 2012-06-21 10:59:37 -04:00
ichuang
a093b86841 problem.coffee change: show answer -> also show solution_* & do mathjax typeset 2012-06-21 10:59:37 -04:00
ichuang
f1a12a2604 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 10:59:36 -04:00
Calen Pennington
cabcc0c1d9 Allow login in the cms, and read a particular course from mongo 2012-06-21 10:59:36 -04:00
Calen Pennington
338547343e Get the cms up to the point of rendering a template 2012-06-21 10:59:36 -04:00
Calen Pennington
3c07c2b158 Make mitxmako available to both the lms and the cms 2012-06-21 10:59:35 -04:00
Matthew Mongeau
2f79936074 Got basic login working 2012-06-21 10:59:13 -04:00
Matthew Mongeau
dd6215ca18 wip 2012-06-21 10:50:55 -04:00
Matthew Mongeau
941a03f1d0 Point login form to login. 2012-06-21 10:43:38 -04:00
Matthew Mongeau
67487f8ad2 Modal wip 2012-06-21 10:38:33 -04:00
Matthew Mongeau
6dd47547c7 wip modal 2012-06-21 09:51:03 -04:00
Galen Frechette
ec1510ca52 adds login modal 2012-06-20 16:20:31 -04:00
Galen Frechette
94886643b0 gets app completly uptodate with prototype 2012-06-20 14:37:37 -04:00
Matthew Mongeau
47e06692d8 Use details on dashboard. 2012-06-14 16:53:44 -04:00
Matthew Mongeau
e00b7cb252 askbot stuff. 2012-06-14 16:46:07 -04:00
Matthew Mongeau
a08be52780 Skin settings. 2012-06-14 15:46:10 -04:00
Matthew Mongeau
ed4e79661f Links 2012-06-14 15:09:24 -04:00