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
90daffe3
Commit
90daffe3
authored
May 15, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8057 from edx/db/reorg-main-html-imports
Reorganize imports in main HTML templates for Studio and LMS
parents
b147117d
85839b58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
19 deletions
+16
-19
cms/templates/base.html
+5
-8
lms/templates/main.html
+11
-11
No files found.
cms/templates/base.html
View file @
90daffe3
## -*- coding: utf-8 -*-
## coding=utf-8
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
get_language_bidi
from
django
.
template
.
defaultfilters
import
escapejs
import
json
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
dir_rtl =
'rtl'
if
get_language_bidi
()
else
'
ltr
'
%
>
<!doctype html>
<!--[if lte IE 9]><html class="ie9 lte9" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if !IE]><<!-->
<html
lang=
"${LANGUAGE_CODE}"
>
<!--<![endif]-->
<
%
#
set
doc
language
direction
from
django
.
utils
.
translation
import
get_language_bidi
dir_rtl =
'rtl'
if
get_language_bidi
()
else
'
ltr
'
%
>
<head
dir=
"${dir_rtl}"
>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
...
...
lms/templates/main.html
View file @
90daffe3
## coding=utf-8
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
from
django
.
utils
.
http
import
urlquote_plus
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
get_language_bidi
from
microsite_configuration
import
microsite
from
microsite_configuration
import
page_title_breadcrumbs
dir_rtl =
'rtl'
if
get_language_bidi
()
else
'
ltr
'
%
>
<!DOCTYPE html>
<!--[if lte IE 9]><html class="ie ie9 lte9" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if !IE]><!-->
<html
lang=
"${LANGUAGE_CODE}"
>
<!--<![endif]-->
<
%
#
set
doc
language
direction
from
django
.
utils
.
translation
import
get_language_bidi
dir_rtl =
'rtl'
if
get_language_bidi
()
else
'
ltr
'
%
>
<head
dir=
"${dir_rtl}"
>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
% if responsive:
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
% endif
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
microsite_configuration
import
microsite
%
>
<
%!
from
microsite_configuration
import
page_title_breadcrumbs
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
from
django
.
utils
.
http
import
urlquote_plus
%
>
## Define a couple of helper functions to make life easier when
## embedding theme conditionals into templates. All inheriting
...
...
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