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
70cb24a3
Commit
70cb24a3
authored
Oct 09, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete unused static-pages.html.
parent
e2075476
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
69 deletions
+2
-69
cms/djangoapps/contentstore/tests/test_contentstore.py
+1
-8
cms/djangoapps/contentstore/views/tabs.py
+1
-16
cms/templates/static-pages.html
+0
-42
cms/urls.py
+0
-3
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
70cb24a3
...
...
@@ -1588,14 +1588,7 @@ class ContentStoreTest(ModuleStoreTestCase):
'name'
:
loc
.
name
}))
self
.
assertEqual
(
resp
.
status_code
,
200
)
# static_pages
resp
=
self
.
client
.
get
(
reverse
(
'static_pages'
,
kwargs
=
{
'org'
:
loc
.
org
,
'course'
:
loc
.
course
,
'coursename'
:
loc
.
name
}))
self
.
assertEqual
(
resp
.
status_code
,
200
)
# static_pages
# asset_index
resp
=
self
.
client
.
get
(
reverse
(
'asset_index'
,
kwargs
=
{
'org'
:
loc
.
org
,
'course'
:
loc
.
course
,
...
...
cms/djangoapps/contentstore/views/tabs.py
View file @
70cb24a3
...
...
@@ -14,10 +14,9 @@ from xmodule.modulestore.inheritance import own_metadata
from
xmodule.modulestore.django
import
modulestore
from
..utils
import
get_course_for_item
,
get_modulestore
from
.access
import
get_location_and_verify_access
__all__
=
[
'edit_tabs'
,
'reorder_static_tabs'
,
'static_pages'
]
__all__
=
[
'edit_tabs'
,
'reorder_static_tabs'
]
def
initialize_course_tabs
(
course
):
...
...
@@ -126,20 +125,6 @@ def edit_tabs(request, org, course, coursename):
})
@login_required
@ensure_csrf_cookie
def
static_pages
(
request
,
org
,
course
,
coursename
):
"Static pages view"
location
=
get_location_and_verify_access
(
request
,
org
,
course
,
coursename
)
course
=
modulestore
()
.
get_item
(
location
)
return
render_to_response
(
'static-pages.html'
,
{
'context_course'
:
course
,
})
# "primitive" tab edit functions driven by the command line.
# These should be replaced/deleted by a more capable GUI someday.
# Note that the command line UI identifies the tabs with 1-based
...
...
cms/templates/static-pages.html
deleted
100644 → 0
View file @
e2075476
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"base.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
block
name=
"title"
>
${_("Static Pages")}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-static-pages
</
%
block>
<
%
block
name=
"content"
>
<div
class=
"main-wrapper"
>
<div
class=
"inner-wrapper"
>
<h1>
Static Pages
</h1>
<div
class=
"page-actions"
>
</div>
<article
class=
"static-page-overview"
>
<a
href=
"#"
class=
"new-static-page-button wip-box"
><span
class=
"plus-icon"
></span>
${_("New Static Page")}
</a>
<ul
class=
"static-page-list"
>
<li
class=
"static-page-item"
>
<a
href=
"#"
class=
"page-name"
>
${_("Course Info")}
</a>
<div
class=
"item-actions"
>
<a
href=
"#"
class=
"edit-button wip"
><span
class=
"delete-icon"
></span></a>
<span
class=
"drag-handle wip"
></span>
</div>
</li>
<li
class=
"static-page-item"
>
<a
href=
"#"
class=
"page-name"
>
${_("Textbook")}
</a>
<div
class=
"item-actions"
>
<a
href=
"#"
class=
"edit-button wip"
><span
class=
"delete-icon"
></span></a>
<span
class=
"drag-handle wip"
></span>
</div>
</li>
<li
class=
"static-page-item"
>
<a
href=
"#"
class=
"page-name"
>
${_("Syllabus")}
</a>
<div
class=
"item-actions"
>
<a
href=
"#"
class=
"edit-button wip"
><span
class=
"delete-icon"
></span></a>
<span
class=
"drag-handle wip"
></span>
</div>
</li>
</ul>
</article>
</div>
</div>
</
%
block>
cms/urls.py
View file @
70cb24a3
...
...
@@ -70,9 +70,6 @@ urlpatterns = ('', # nopep8
url
(
r'^(?P<org>[^/]+)/(?P<course>[^/]+)/(?P<category>[^/]+)/(?P<name>[^/]+)/gradeas.*$'
,
'contentstore.views.assignment_type_update'
,
name
=
'assignment_type_update'
),
url
(
r'^pages/(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<coursename>[^/]+)$'
,
'contentstore.views.static_pages'
,
name
=
'static_pages'
),
url
(
r'^edit_tabs/(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<coursename>[^/]+)$'
,
'contentstore.views.edit_tabs'
,
name
=
'edit_tabs'
),
...
...
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