Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d31a8a4d
Commit
d31a8a4d
authored
Mar 20, 2017
by
Matthew Piatetsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Toggle new program progress page with waffle switch
ECOM-7389
parent
173e5922
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
lms/djangoapps/learner_dashboard/views.py
+4
-0
lms/templates/learner_dashboard/program_details_2017.html
+29
-0
No files found.
lms/djangoapps/learner_dashboard/views.py
View file @
d31a8a4d
"""Learner dashboard views"""
import
waffle
from
django.contrib.auth.decorators
import
login_required
from
django.core.urlresolvers
import
reverse
from
django.http
import
Http404
...
...
@@ -73,4 +74,7 @@ def program_details(request, program_uuid):
'user_preferences'
:
get_user_preferences
(
request
.
user
)
}
if
waffle
.
switch_is_active
(
'new_program_progress'
):
return
render_to_response
(
'learner_dashboard/program_details_2017.html'
,
context
)
else
:
return
render_to_response
(
'learner_dashboard/program_details.html'
,
context
)
lms/templates/learner_dashboard/program_details_2017.html
0 → 100644
View file @
d31a8a4d
## Override the default styles_version to the Pattern Library version (version 2)
<
%!
main_css =
"style-learner-dashboard"
%
>
<
%
page
expression_filter=
"h"
/>
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
js_utils
import
(
dump_js_escaped_json
,
js_escaped_string
)
%
>
<
%
block
name=
"js_extra"
>
<
%
static:require_module
module_name=
"js/learner_dashboard/program_details_factory"
class_name=
"ProgramDetailsFactory"
>
ProgramDetailsFactory({
programData: ${program_data | n, dump_js_escaped_json},
urls: ${urls | n, dump_js_escaped_json},
userPreferences: ${user_preferences | n, dump_js_escaped_json},
});
</
%
static:require
_module
>
</
%
block>
<
%
block
name=
"pagetitle"
>
${_("Program Details")}
</
%
block>
<
%
block
name=
"bodyclass"
>
program-details
</
%
block>
<main
id=
"main"
aria-label=
"Content"
tabindex=
"-1"
>
<div
class=
"js-program-details-wrapper"
></div>
</main>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment