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
44d4a4b0
Commit
44d4a4b0
authored
Oct 02, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started asset library template -wip
parent
70d9721d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
2 deletions
+41
-2
cms/djangoapps/contentstore/views.py
+6
-0
cms/static/sass/_assets.scss
+12
-0
cms/static/sass/base-style.scss
+1
-0
cms/templates/asset_index.html
+18
-0
cms/templates/index.html
+1
-1
cms/urls.py
+3
-1
No files found.
cms/djangoapps/contentstore/views.py
View file @
44d4a4b0
...
...
@@ -599,3 +599,9 @@ def remove_user(request, org, course, name):
remove_user_from_course_group
(
request
.
user
,
user
,
location
,
EDITOR_ROLE_NAME
)
return
create_json_response
()
@login_required
@ensure_csrf_cookie
def
asset_index
(
request
,
location
):
return
render_to_response
(
'asset_index.html'
,{})
cms/static/sass/_assets.scss
0 → 100644
View file @
44d4a4b0
.assets
{
input
.asset-search-input
{
position
:
absolute
;
right
:
0
;
top
:
5px
;
width
:
260px
;
background-color
:
#fff
;
}
}
\ No newline at end of file
cms/static/sass/base-style.scss
View file @
44d4a4b0
...
...
@@ -13,6 +13,7 @@
@import
"courseware"
;
@import
"subsection"
;
@import
"unit"
;
@import
"assets"
;
@import
"course-info"
;
@import
"graphics"
;
@import
"modal"
;
...
...
cms/templates/asset_index.html
0 → 100644
View file @
44d4a4b0
<
%
inherit
file=
"base.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
block
name=
"bodyclass"
>
assets
</
%
block>
<
%
block
name=
"title"
>
CMS Courseware Overview
</
%
block>
<
%
block
name=
"content"
>
<div
class=
"main-wrapper"
>
<div
class=
"inner-wrapper"
>
<h1>
Asset Library
</h1>
<input
type=
"text"
class=
"asset-search-input search wip-box"
placeholder=
"search assets"
/>
<article
class=
"asset-library"
>
</article>
</div>
</div>
</
%
block>
cms/templates/index.html
View file @
44d4a4b0
...
...
@@ -6,7 +6,7 @@
<div
class=
"main-wrapper"
>
<div
class=
"inner-wrapper"
>
<h1>
My Courses
</h1>
<h1>
My Courses
</h1>
<article
class=
"my-classes"
>
<a
href=
"#"
class=
"new-course-button wip-box"
><span
class=
"plus-icon"
></span>
New Course
</a>
<ul
class=
"class-list"
>
...
...
cms/urls.py
View file @
44d4a4b0
...
...
@@ -26,7 +26,9 @@ urlpatterns = ('',
url
(
r'^(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<name>[^/]+)/add_user$'
,
'contentstore.views.add_user'
,
name
=
'add_user'
),
url
(
r'^(?P<org>[^/]+)/(?P<course>[^/]+)/course/(?P<name>[^/]+)/remove_user$'
,
'contentstore.views.remove_user'
,
name
=
'remove_user'
)
'contentstore.views.remove_user'
,
name
=
'remove_user'
),
url
(
r'^assets/(?P<location>.*?)$'
,
'contentstore.views.asset_index'
,
name
=
'asset_index'
)
)
...
...
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