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
51e6d5fb
Commit
51e6d5fb
authored
Jan 31, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2386 from edx/jbau/fix-title-stanford-theme
fix main.html template -- <title> was eating everything
parents
77ac4158
7399d517
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
lms/templates/main.html
+13
-18
No files found.
lms/templates/main.html
View file @
51e6d5fb
...
...
@@ -21,36 +21,31 @@
return
getattr
(
settings
,
"
THEME_NAME
",
None
)
==
"
stanford
"
%
>
</
%
def>
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case
<
%
def
name=
"pagetitle()"
/>
<!DOCTYPE html>
<!--[if IE 7]><html class="ie ie7 lte9 lte8 lte7" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if IE 8]><html class="ie ie8 lte9 lte8" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if IE 9]><html class="ie ie9 lte9" lang="${LANGUAGE_CODE}"><![endif]-->
<!--[if gt IE 9]><!-->
<html
lang=
"${LANGUAGE_CODE}"
>
<!--<![endif]-->
<head>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<
%
block
name=
"title"
>
<title>
% if stanford_theme_enabled():
${_("Home")} | class.stanford.edu
% else:
${page_title_breadcrumbs(self.pagetitle())}
</title>
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case
<!--<%block name="pagetitle" />-->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<script
type=
"text/javascript"
>
/* immediately break out of an iframe if coming from the marketing website */
(
function
(
window
)
{
if
(
window
.
location
!==
window
.
top
.
location
)
{
window
.
top
.
location
=
window
.
location
;
}
})(
this
);
</script>
% endif
</
%
block>
<script
type=
"text/javascript"
>
/* immediately break out of an iframe if coming from the marketing website */
(
function
(
window
)
{
if
(
window
.
location
!==
window
.
top
.
location
)
{
window
.
top
.
location
=
window
.
location
;
}
})(
this
);
</script>
<script
type=
"text/javascript"
src=
"/jsi18n/"
></script>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"${static.url(MicrositeConfiguration.get_microsite_configuration_value('favicon_path', settings.FAVICON_PATH))}"
/>
...
...
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