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
7223ee93
Commit
7223ee93
authored
May 23, 2016
by
Robert Raposa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix import order for HTML, Text.
parent
6b390f2e
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
34 additions
and
34 deletions
+34
-34
cms/templates/404.html
+1
-1
cms/templates/500.html
+1
-1
cms/templates/asset_index.html
+1
-1
cms/templates/container.html
+1
-1
cms/templates/course_outline.html
+1
-1
cms/templates/group_configurations.html
+1
-1
cms/templates/index.html
+1
-1
lms/djangoapps/instructor/views/instructor_dashboard.py
+1
-1
lms/templates/api_admin/status.html
+1
-1
lms/templates/ccx/enrollment.html
+1
-1
lms/templates/courseware/accordion.html
+1
-1
lms/templates/courseware/info.html
+1
-1
lms/templates/courseware/welcome-back.html
+1
-1
lms/templates/dashboard.html
+1
-1
lms/templates/dashboard/_dashboard_certificate_information.html
+1
-1
lms/templates/dashboard/_dashboard_course_listing.html
+1
-1
lms/templates/dashboard/_dashboard_xseries_info.html
+1
-1
lms/templates/edxnotes/edxnotes.html
+1
-1
lms/templates/help_modal.html
+1
-1
lms/templates/index.html
+1
-1
lms/templates/provider/authorize.html
+1
-1
lms/templates/registration/password_reset_complete.html
+1
-1
lms/templates/registration/password_reset_confirm.html
+1
-1
lms/templates/static_templates/404.html
+1
-1
lms/templates/static_templates/embargo.html
+1
-1
lms/templates/static_templates/server-down.html
+1
-1
lms/templates/static_templates/server-error.html
+1
-1
lms/templates/static_templates/server-overloaded.html
+1
-1
lms/templates/unsubscribe.html
+1
-1
lms/templates/verify_student/pay_and_verify.html
+1
-1
openedx/core/djangolib/markup.py
+1
-1
openedx/core/djangolib/tests/test_markup.py
+2
-2
themes/edx.org/lms/templates/dashboard.html
+1
-1
No files found.
cms/templates/404.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"base.html"
/>
<
%
block
name=
"title"
>
${_("Page Not Found")}
</
%
block>
...
...
cms/templates/500.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"base.html"
/>
...
...
cms/templates/asset_index.html
View file @
7223ee93
...
...
@@ -4,7 +4,7 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
openedx
.
core
.
djangolib
.
js_utils
import
js_escaped_string
,
dump_js_escaped_json
%
>
<
%
block
name=
"title"
>
${_("Files
&
Uploads")}
</
%
block>
...
...
cms/templates/container.html
View file @
7223ee93
...
...
@@ -15,7 +15,7 @@ from contentstore.views.helpers import xblock_studio_url, xblock_type_display_na
from
openedx
.
core
.
djangolib
.
js_utils
import
(
dump_js_escaped_json
,
js_escaped_string
)
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
block
name=
"title"
>
${xblock.display_name_with_default} ${xblock_type_display_name(xblock)}
</
%
block>
...
...
cms/templates/course_outline.html
View file @
7223ee93
...
...
@@ -8,7 +8,7 @@ from django.utils.translation import ugettext as _
from
openedx
.
core
.
djangolib
.
js_utils
import
dump_js_escaped_json
from
contentstore
.
utils
import
reverse_usage_url
from
openedx
.
core
.
djangoapps
.
self_paced
.
models
import
SelfPacedConfiguration
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
block
name=
"title"
>
${_("Course Outline")}
</
%
block>
<
%
block
name=
"bodyclass"
>
is-signedin course view-outline
</
%
block>
...
...
cms/templates/group_configurations.html
View file @
7223ee93
...
...
@@ -9,7 +9,7 @@ from django.utils.translation import ugettext as _
from
openedx
.
core
.
djangolib
.
js_utils
import
(
dump_js_escaped_json
,
js_escaped_string
)
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
block
name=
"title"
>
${_("Group Configurations")}
</
%
block>
...
...
cms/templates/index.html
View file @
7223ee93
...
...
@@ -2,7 +2,7 @@
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"base.html"
/>
...
...
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
7223ee93
...
...
@@ -53,7 +53,7 @@ from class_dashboard.dashboard_data import get_section_display_name, get_array_s
from
.tools
import
get_units_with_due_date
,
title_or_url
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
from
openedx.core.djangolib.markup
import
Text
,
HTML
from
openedx.core.djangolib.markup
import
HTML
,
Text
log
=
logging
.
getLogger
(
__name__
)
...
...
lms/templates/api_admin/status.html
View file @
7223ee93
...
...
@@ -5,7 +5,7 @@
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangoapps
.
api_admin
.
models
import
ApiAccessRequest
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<div
id=
"api-access-wrapper"
>
...
...
lms/templates/ccx/enrollment.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<div
class=
"batch-enrollment"
style=
"float:left;width:50%"
>
...
...
lms/templates/courseware/accordion.html
View file @
7223ee93
...
...
@@ -5,7 +5,7 @@
from
util
.
date_utils
import
get_time_display
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
conf
import
settings
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
def
name=
"make_chapter(chapter)"
>
...
...
lms/templates/courseware/info.html
View file @
7223ee93
...
...
@@ -7,7 +7,7 @@ from django.utils.translation import ugettext as _
from
courseware
.
courses
import
get_course_info_section
,
get_course_date_summary
from
openedx
.
core
.
djangoapps
.
self_paced
.
models
import
SelfPacedConfiguration
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
block
name=
"pagetitle"
>
${_("{course_number} Course Info").format(course_number=course.display_number_with_default)}
</
%
block>
...
...
lms/templates/courseware/welcome-back.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<h2>
${chapter_module.display_name_with_default}
</h2>
...
...
lms/templates/dashboard.html
View file @
7223ee93
...
...
@@ -8,7 +8,7 @@ from django.template import RequestContext
import
third_party_auth
from
third_party_auth
import
pipeline
from
openedx
.
core
.
djangolib
.
js_utils
import
dump_js_escaped_json
,
js_escaped_string
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
...
...
lms/templates/dashboard/_dashboard_certificate_information.html
View file @
7223ee93
...
...
@@ -2,7 +2,7 @@
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
course_modes
.
models
import
CourseMode
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
lms/templates/dashboard/_dashboard_course_listing.html
View file @
7223ee93
...
...
@@ -9,7 +9,7 @@ from django.core.urlresolvers import reverse
from
course_modes
.
models
import
CourseMode
from
course_modes
.
helpers
import
enrollment_mode_display
from
openedx
.
core
.
djangolib
.
js_utils
import
dump_js_escaped_json
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
student
.
helpers
import
(
VERIFY_STATUS_NEED_TO_VERIFY
,
VERIFY_STATUS_SUBMITTED
,
...
...
lms/templates/dashboard/_dashboard_xseries_info.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
args=
"program_data, enrollment_mode, display_category"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<div
class=
"message message-status is-shown credit-message"
>
...
...
lms/templates/edxnotes/edxnotes.html
View file @
7223ee93
...
...
@@ -5,7 +5,7 @@
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
edxnotes
.
helpers
import
NoteJSONEncoder
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
openedx
.
core
.
djangolib
.
js_utils
import
dump_js_escaped_json
,
js_escaped_string
%
>
...
...
lms/templates/help_modal.html
View file @
7223ee93
...
...
@@ -8,7 +8,7 @@ from django.conf import settings
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
core
.
urlresolvers
import
reverse
from
openedx
.
core
.
djangolib
.
js_utils
import
js_escaped_string
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
xmodule
.
tabs
import
CourseTabList
%
>
...
...
lms/templates/index.html
View file @
7223ee93
...
...
@@ -5,7 +5,7 @@
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
core
.
urlresolvers
import
reverse
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<main
id=
"main"
aria-label=
"Content"
tabindex=
"-1"
>
...
...
lms/templates/provider/authorize.html
View file @
7223ee93
...
...
@@ -6,7 +6,7 @@
from
django
.
utils
.
translation
import
ugettext
as
_
from
provider
.
templatetags
.
scope
import
scopes
from
django
.
core
.
urlresolvers
import
reverse
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/registration/password_reset_complete.html
View file @
7223ee93
...
...
@@ -4,7 +4,7 @@
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/registration/password_reset_confirm.html
View file @
7223ee93
...
...
@@ -4,7 +4,7 @@
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/static_templates/404.html
View file @
7223ee93
...
...
@@ -2,7 +2,7 @@
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/static_templates/embargo.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/static_templates/server-down.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/static_templates/server-error.html
View file @
7223ee93
...
...
@@ -2,7 +2,7 @@
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/static_templates/server-overloaded.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
inherit
file=
"../main.html"
/>
...
...
lms/templates/unsubscribe.html
View file @
7223ee93
<
%
page
expression_filter=
"h"
/>
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
conf
import
settings
...
...
lms/templates/verify_student/pay_and_verify.html
View file @
7223ee93
...
...
@@ -3,7 +3,7 @@
import
json
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
from
lms
.
djangoapps
.
verify_student
.
views
import
PayAndVerifyView
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
openedx/core/djangolib/markup.py
View file @
7223ee93
...
...
@@ -23,7 +23,7 @@ def HTML(html): # pylint: disable=invalid-name
<
%
!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import
Text, HTML
from openedx.core.djangolib.markup import
HTML, Text
%
>
${Text(_("Write & send {start}email{end}")).format(
start=HTML("<a href='mailto:{}'>").format(user.email),
...
...
openedx/core/djangolib/tests/test_markup.py
View file @
7223ee93
...
...
@@ -10,7 +10,7 @@ import ddt
from
django.utils.translation
import
ugettext
as
_
,
ungettext
from
mako.template
import
Template
from
openedx.core.djangolib.markup
import
Text
,
HTML
from
openedx.core.djangolib.markup
import
HTML
,
Text
@attr
(
'shard_2'
)
...
...
@@ -60,7 +60,7 @@ class FormatHtmlTest(unittest.TestCase):
<
%
!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import
Text, HTML
from openedx.core.djangolib.markup import
HTML, Text
%
>
${Text(_(u"A & {BC}")).format(BC=HTML("B & C"))}
"""
,
...
...
themes/edx.org/lms/templates/dashboard.html
View file @
7223ee93
...
...
@@ -10,7 +10,7 @@ from microsite_configuration import microsite
from
django
.
core
.
urlresolvers
import
reverse
import
json
from
openedx
.
core
.
djangolib
.
js_utils
import
dump_js_escaped_json
,
js_escaped_string
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
HTML
,
Text
%
>
<
%
...
...
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