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
386a8a27
Commit
386a8a27
authored
Aug 03, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8936 from edx/db/remove-unneeded-template-block
Remove unneeded block from courses.html template
parents
a9de5c90
7adaa221
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
24 deletions
+4
-24
lms/templates/courseware/courses.html
+4
-24
No files found.
lms/templates/courseware/courses.html
View file @
386a8a27
...
...
@@ -5,10 +5,13 @@
from
openedx
.
core
.
lib
.
json_utils
import
EscapedEdxJSONEncoder
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
course_discovery_enabled =
settings.FEATURES.get('ENABLE_COURSE_DISCOVERY')
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
% if
settings.FEATURES.get('ENABLE_COURSE_DISCOVERY')
:
% if
course_discovery_enabled
:
<
%
block
name=
"header_extras"
>
% for template_name in ["course_card", "filter_bar", "filter", "facet", "facet_option"]:
<script
type=
"text/template"
id=
"${template_name}-tpl"
>
...
...
@@ -25,29 +28,6 @@
% endif
<
%
block
name=
"pagetitle"
>
${_("Courses")}
</
%
block>
<
%
platform_name =
microsite.get_value('platform_name',
settings
.
PLATFORM_NAME
)
course_discovery_enabled =
settings.FEATURES.get('ENABLE_COURSE_DISCOVERY')
if
self
.
stanford_theme_enabled
()
:
course_index_overlay_text =
_("Explore
free
courses
from
{
university_name
}.").
format
(
university_name=
"Stanford University"
)
logo_file =
static.url('themes/stanford/images/seal.png')
logo_alt_text =
"Stanford Seal Logo"
else:
course_index_overlay_text =
microsite.get_value('course_index_overlay_text',
_
("
Explore
courses
from
{
platform_name
}.").
format
(
platform_name=
platform_name))
if
settings
.
FEATURES
.
get
('
IS_EDX_DOMAIN
',
False
)
:
#
For
some
reason
,
`
static
.
url
('
images
/
edx-theme
/
edx-logo-bw
.
png
')`
breaks
template
rendering
.
default_image_url =
settings.STATIC_URL
+
'
images
/
edx-theme
/
edx-logo-bw
.
png
'
else:
default_image_url =
settings.STATIC_URL
+
'
images
/
default-theme
/
logo-large
.
png
'
logo_file =
microsite.get_value(
'
course_index_overlay_logo_file
',
default_image_url
)
logo_alt_text =
_("{platform_name}
Logo
").
format
(
platform_name=
platform_name)
%
>
<section
class=
"find-courses"
>
<section
class=
"courses-container"
>
...
...
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