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
0fec3df8
Commit
0fec3df8
authored
Dec 16, 2011
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Offline/Removed dead code
parent
609d3c68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
courseware/views.py
+0
-19
No files found.
courseware/views.py
View file @
0fec3df8
...
...
@@ -98,31 +98,12 @@ def render_accordion(request,course,chapter,section):
return
{
'init_js'
:
render_to_string
(
'accordion_init.js'
,
context
),
'content'
:
render_to_string
(
'accordion.html'
,
context
)}
def
video_mod
(
request
,
module
):
''' Shows a video, with subtitles.
OBSOLETE. Remove once x_module version confirmed
'''
id
=
module
.
getAttribute
(
'youtube'
)
return
{
'init_js'
:
render_to_string
(
'video_init.js'
,{
'id'
:
id
}),
'content'
:
render_to_string
(
'video.html'
,{
'id'
:
id
})}
def
html_module
(
request
,
module
):
''' Show basic text
'''
template_source
=
module
.
getAttribute
(
'filename'
)
return
{
'content'
:
render_to_string
(
template_source
,
{})}
def
tab_module
(
request
,
module
):
''' Layout module which lays out content in tabs.
'''
contents
=
[(
e
.
getAttribute
(
"name"
),
render_module
(
request
,
e
))
\
for
e
in
module
.
childNodes
\
if
e
.
nodeType
==
1
]
js
=
""
.
join
([
e
[
1
][
'init_js'
]
for
e
in
contents
if
'init_js'
in
e
[
1
]])
return
{
'init_js'
:
render_to_string
(
'tab_module.js'
,{
'tabs'
:
contents
})
+
js
,
'content'
:
render_to_string
(
'tab_module.html'
,{
'tabs'
:
contents
})}
def
vertical_module
(
request
,
module
):
''' Layout module which lays out content vertically.
'''
...
...
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