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
OpenEdx
edx-platform
Commits
f59347ef
Commit
f59347ef
authored
Jun 24, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert themed templates to includes/forks
parent
67801d5c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
33 deletions
+10
-33
common/djangoapps/student/views.py
+0
-10
lms/djangoapps/courseware/views.py
+0
-10
lms/templates/courseware/course_about.html
+1
-0
lms/templates/courseware/info.html
+1
-0
lms/templates/dashboard.html
+1
-7
lms/templates/register.html
+7
-6
No files found.
common/djangoapps/student/views.py
View file @
f59347ef
...
@@ -408,11 +408,6 @@ def register_user(request, extra_context=None):
...
@@ -408,11 +408,6 @@ def register_user(request, extra_context=None):
overrides
[
'selected_provider'
]
=
current_provider
.
NAME
overrides
[
'selected_provider'
]
=
current_provider
.
NAME
context
.
update
(
overrides
)
context
.
update
(
overrides
)
try
:
if
settings
.
FEATURES
[
"USE_CUSTOM_THEME"
]:
return
render_to_response
(
"theme-register.html"
,
context
)
except
TopLevelLookupException
:
pass
return
render_to_response
(
'register.html'
,
context
)
return
render_to_response
(
'register.html'
,
context
)
...
@@ -564,11 +559,6 @@ def dashboard(request):
...
@@ -564,11 +559,6 @@ def dashboard(request):
context
[
'duplicate_provider'
]
=
pipeline
.
get_duplicate_provider
(
messages
.
get_messages
(
request
))
context
[
'duplicate_provider'
]
=
pipeline
.
get_duplicate_provider
(
messages
.
get_messages
(
request
))
context
[
'provider_user_states'
]
=
pipeline
.
get_provider_user_states
(
user
)
context
[
'provider_user_states'
]
=
pipeline
.
get_provider_user_states
(
user
)
try
:
if
settings
.
FEATURES
[
"USE_CUSTOM_THEME"
]:
return
render_to_response
(
"theme-dashboard.html"
,
context
)
except
TopLevelLookupException
:
pass
return
render_to_response
(
'dashboard.html'
,
context
)
return
render_to_response
(
'dashboard.html'
,
context
)
...
...
lms/djangoapps/courseware/views.py
View file @
f59347ef
...
@@ -487,11 +487,6 @@ def course_info(request, course_id):
...
@@ -487,11 +487,6 @@ def course_info(request, course_id):
'reverifications'
:
reverifications
,
'reverifications'
:
reverifications
,
}
}
try
:
if
settings
.
FEATURES
[
"USE_CUSTOM_THEME"
]:
return
render_to_response
(
"courseware/theme-info.html"
,
context
)
except
TopLevelLookupException
:
pass
return
render_to_response
(
'courseware/info.html'
,
context
)
return
render_to_response
(
'courseware/info.html'
,
context
)
...
@@ -624,11 +619,6 @@ def course_about(request, course_id):
...
@@ -624,11 +619,6 @@ def course_about(request, course_id):
'is_course_full'
:
is_course_full
'is_course_full'
:
is_course_full
}
}
try
:
if
settings
.
FEATURES
[
"USE_CUSTOM_THEME"
]:
return
render_to_response
(
"courseware/theme-course_about.html"
,
context
)
except
TopLevelLookupException
:
pass
return
render_to_response
(
'courseware/course_about.html'
,
context
)
return
render_to_response
(
'courseware/course_about.html'
,
context
)
...
...
lms/templates/courseware/course_about.html
View file @
f59347ef
...
@@ -356,6 +356,7 @@
...
@@ -356,6 +356,7 @@
<li
class=
"prerequisites"
><div
class=
"icon prereq"
></div><p>
${_("Prerequisites")}
</p><span
class=
"start-date"
>
${get_course_about_section(course, "prerequisites")}
</span></li>
<li
class=
"prerequisites"
><div
class=
"icon prereq"
></div><p>
${_("Prerequisites")}
</p><span
class=
"start-date"
>
${get_course_about_section(course, "prerequisites")}
</span></li>
% endif
% endif
</ol>
</ol>
<
%
include
file=
"theme-course_about_research.html"
/>
</section>
</section>
...
...
lms/templates/courseware/info.html
View file @
f59347ef
...
@@ -38,6 +38,7 @@ $(document).ready(function(){
...
@@ -38,6 +38,7 @@ $(document).ready(function(){
% endif
% endif
<h1>
${_("Course Updates
&
News")}
</h1>
<h1>
${_("Course Updates
&
News")}
</h1>
<
%
include
file=
"theme-info_research.html"
/>
${get_course_info_section(request, course, 'updates')}
${get_course_info_section(request, course, 'updates')}
</section>
</section>
<section
aria-label=
"Handout Navigation"
class=
"handouts"
>
<section
aria-label=
"Handout Navigation"
class=
"handouts"
>
...
...
lms/templates/dashboard.html
View file @
f59347ef
...
@@ -23,13 +23,6 @@
...
@@ -23,13 +23,6 @@
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
(
function
()
{
(
function
()
{
$
(
".email-settings"
).
click
(
function
(
event
)
{
$
(
"#email_settings_course_id"
).
val
(
$
(
event
.
target
).
data
(
"course-id"
)
);
$
(
"#email_settings_course_number"
).
text
(
$
(
event
.
target
).
data
(
"course-number"
)
);
if
(
$
(
event
.
target
).
data
(
"optout"
)
==
"False"
)
{
$
(
"#receive_emails"
).
prop
(
'checked'
,
true
);
}
});
$
(
'.message.is-expandable .wrapper-tip'
).
bind
(
'click'
,
toggleExpandMessage
);
$
(
'.message.is-expandable .wrapper-tip'
).
bind
(
'click'
,
toggleExpandMessage
);
...
@@ -294,6 +287,7 @@
...
@@ -294,6 +287,7 @@
</ul>
</ul>
</section>
</section>
<
%
include
file=
'theme-dashboard-research.html'
/>
</section>
</section>
<section
class=
"my-courses"
id=
"my-courses"
>
<section
class=
"my-courses"
id=
"my-courses"
>
...
...
lms/templates/register.html
View file @
f59347ef
...
@@ -15,8 +15,7 @@
...
@@ -15,8 +15,7 @@
<
%!
from
third_party_auth
import
pipeline
,
provider
%
>
<
%!
from
third_party_auth
import
pipeline
,
provider
%
>
<
%!
import
calendar
%
>
<
%!
import
calendar
%
>
<
%
block
name=
"pagetitle"
>
${_("Register for {platform_name}").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"pagetitle"
>
${_("Create your {platform_name} learning and research account!").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-register
</
%
block>
<
%
block
name=
"bodyclass"
>
view-register
</
%
block>
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
...
@@ -95,8 +94,8 @@
...
@@ -95,8 +94,8 @@
<section
class=
"introduction"
>
<section
class=
"introduction"
>
<header>
<header>
<h1
class=
"title"
>
<h1
class=
"title"
>
<span
class=
"title-super"
>
${_("Welcome
!"
)}
</span>
<span
class=
"title-super"
>
${_("Welcome
to the {platform_name} Learning and Research Community").format(platform_name=platform_name
)}
</span>
<span
class=
"title-sub"
>
${_("
Register below to create your {platform_name} account").format(platform_name=platform_name
)}
</span>
<span
class=
"title-sub"
>
${_("
Create your account"
)}
</span>
</h1>
</h1>
</header>
</header>
</section>
</section>
...
@@ -193,7 +192,7 @@
...
@@ -193,7 +192,7 @@
<input
id=
"name"
type=
"text"
name=
"name"
value=
"${name}"
placeholder=
"${_('example: Jane Doe')}"
required
aria-required=
"true"
aria-describedby=
"name-tip"
/>
<input
id=
"name"
type=
"text"
name=
"name"
value=
"${name}"
placeholder=
"${_('example: Jane Doe')}"
required
aria-required=
"true"
aria-describedby=
"name-tip"
/>
<span
class=
"tip tip-input"
id=
"name-tip"
>
<span
class=
"tip tip-input"
id=
"name-tip"
>
% if self.stanford_theme_enabled():
% if self.stanford_theme_enabled():
${_("Needed for any Statements of Accomplishment you may earn
<strong>
(cannot be changed later)
</strong>
")}
${_("Needed for any Statements of Accomplishment you may earn")}
% else:
% else:
${_("Needed for any certificates you may earn
<strong>
(cannot be changed later)
</strong>
")}
${_("Needed for any certificates you may earn
<strong>
(cannot be changed later)
</strong>
")}
% endif
% endif
...
@@ -325,6 +324,8 @@
...
@@ -325,6 +324,8 @@
</ol>
</ol>
</div>
</div>
<
%
include
file=
'theme-register-research.html'
/>
<div
class=
"group group-form group-form-accountacknowledgements"
>
<div
class=
"group group-form group-form-accountacknowledgements"
>
<h2
class=
"sr"
>
${_("Account Acknowledgements")}
</h2>
<h2
class=
"sr"
>
${_("Account Acknowledgements")}
</h2>
...
@@ -347,7 +348,7 @@
...
@@ -347,7 +348,7 @@
<input
id=
"honorcode-yes"
type=
"checkbox"
name=
"honor_code"
value=
"true"
/>
<input
id=
"honorcode-yes"
type=
"checkbox"
name=
"honor_code"
value=
"true"
/>
<
%
<
%
##
TODO:
provide
a
better
way
to
override
these
links
##
TODO:
provide
a
better
way
to
override
these
links
if
self
.
theme_enabled
()
:
if
self
.
stanford_
theme_enabled
()
:
honor_code_path =
marketing_link('TOS')
+
"#
honor
"
honor_code_path =
marketing_link('TOS')
+
"#
honor
"
else:
else:
honor_code_path =
marketing_link('HONOR')
honor_code_path =
marketing_link('HONOR')
...
...
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