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
a6c35fb2
Commit
a6c35fb2
authored
Apr 08, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - addressing pull request to merge to master feedback
parent
386f57ea
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
31 deletions
+39
-31
cms/djangoapps/contentstore/views.py
+2
-0
cms/static/js/base.js
+0
-25
cms/static/sass/_base.scss
+2
-1
cms/templates/settings_advanced.html
+8
-4
cms/templates/ux-alerts.html
+25
-0
cms/urls.py
+2
-1
No files found.
cms/djangoapps/contentstore/views.py
View file @
a6c35fb2
...
...
@@ -120,9 +120,11 @@ def howitworks(request):
else
:
return
render_to_response
(
'howitworks.html'
,
{})
def
ux_alerts
(
request
):
return
render_to_response
(
'ux-alerts.html'
,
{})
# ==== Views for any logged-in user ==================================
...
...
cms/static/js/base.js
View file @
a6c35fb2
...
...
@@ -48,31 +48,6 @@ $(document).ready(function () {
(
e
).
preventDefault
();
});
// alert and notifications - manual close
$
(
'.action-alert-close, .alert.has-actions .nav-actions a'
).
click
(
function
(
e
)
{
(
e
).
preventDefault
();
console
.
log
(
'closing alert'
);
$
(
this
).
closest
(
'.wrapper-alert'
).
removeClass
(
'is-shown'
);
});
// alert and notifications - manual & action-based close
$
(
'.action-notification-close'
).
click
(
function
(
e
)
{
(
e
).
preventDefault
();
$
(
this
).
closest
(
'.wrapper-notification'
).
removeClass
(
'is-shown'
).
addClass
(
'is-hiding'
);
});
// prompt pop
$
(
'.action-prompt'
).
click
(
function
(
e
){
(
e
).
preventDefault
();
$body
.
toggleClass
(
'prompt-is-shown'
);
});
// prompt close
$
(
'.prompt .action-cancel, .prompt .action-proceed'
).
click
(
function
(
e
)
{
(
e
).
preventDefault
();
$body
.
removeClass
(
'prompt-is-shown'
);
});
// nav - dropdown related
$body
.
click
(
function
(
e
)
{
$
(
'.nav-dropdown .nav-item .wrapper-nav-sub'
).
removeClass
(
'is-shown'
);
...
...
cms/static/sass/_base.scss
View file @
a6c35fb2
...
...
@@ -112,6 +112,7 @@ p, ul, ol, dl {
// layout - basic page header
.wrapper-mast
{
margin
:
(
$baseline
*
1
.5
)
0
0
0
;
padding
:
0
$baseline
;
position
:
relative
;
...
...
@@ -122,7 +123,7 @@ p, ul, ol, dl {
max-width
:
$fg-max-width
;
min-width
:
$fg-min-width
;
width
:
flex-grid
(
12
);
margin
:
(
$baseline
*
1
.5
)
auto
$baseline
auto
;
margin
:
0
auto
$baseline
auto
;
color
:
$gray-d2
;
}
...
...
cms/templates/settings_advanced.html
View file @
a6c35fb2
...
...
@@ -42,13 +42,17 @@ editor.render();
</
%
block>
<
%
block
name=
"content"
>
<div
class=
"wrapper-
conten
t wrapper"
>
<
section
class=
"content
"
>
<
header
class=
"pag
e"
>
<div
class=
"wrapper-
mas
t wrapper"
>
<
header
class=
"mast has-subtitle
"
>
<
div
class=
"titl
e"
>
<span
class=
"title-sub"
>
Settings
</span>
<h1
class=
"title-1"
>
Advanced Settings
</h1>
<h1
class=
"title-1"
>
Schedule
&
Details
</h1>
</div>
</header>
</div>
<div
class=
"wrapper-content wrapper"
>
<section
class=
"content"
>
<article
class=
"content-primary"
role=
"main"
>
<form
id=
"settings_advanced"
class=
"settings-advanced"
method=
"post"
action=
""
>
...
...
cms/templates/ux-alerts.html
View file @
a6c35fb2
...
...
@@ -7,6 +7,31 @@
// notifications - demo
$
(
document
).
ready
(
function
()
{
// alert and notifications - manual close
$
(
'.action-alert-close, .alert.has-actions .nav-actions a'
).
click
(
function
(
e
)
{
(
e
).
preventDefault
();
console
.
log
(
'closing alert'
);
$
(
this
).
closest
(
'.wrapper-alert'
).
removeClass
(
'is-shown'
);
});
// alert and notifications - manual & action-based close
$
(
'.action-notification-close'
).
click
(
function
(
e
)
{
(
e
).
preventDefault
();
$
(
this
).
closest
(
'.wrapper-notification'
).
removeClass
(
'is-shown'
).
addClass
(
'is-hiding'
);
});
// prompt pop
$
(
'.action-prompt'
).
click
(
function
(
e
){
(
e
).
preventDefault
();
$body
.
toggleClass
(
'prompt-is-shown'
);
});
// prompt close
$
(
'.prompt .action-cancel, .prompt .action-proceed'
).
click
(
function
(
e
)
{
(
e
).
preventDefault
();
$body
.
removeClass
(
'prompt-is-shown'
);
});
$
(
'.hide-notification'
).
click
(
function
(
e
)
{
(
e
).
preventDefault
();
$
(
'.wrapper-notification'
).
removeClass
(
'is-hiding is-shown'
);
...
...
cms/urls.py
View file @
a6c35fb2
...
...
@@ -99,7 +99,6 @@ urlpatterns = ('',
# User creation and updating views
urlpatterns
+=
(
url
(
r'^ux-alerts$'
,
'contentstore.views.ux_alerts'
,
name
=
'ux-alerts'
),
url
(
r'^(?P<org>[^/]+)/(?P<course>[^/]+)/checklists/(?P<name>[^/]+)$'
,
'contentstore.views.get_checklists'
,
name
=
'checklists'
),
url
(
r'^(?P<org>[^/]+)/(?P<course>[^/]+)/checklists/(?P<name>[^/]+)/update(/)?(?P<checklist_index>.+)?.*$'
,
'contentstore.views.update_checklist'
,
name
=
'checklists_updates'
),
...
...
@@ -117,6 +116,8 @@ urlpatterns += (
url
(
r'^logout$'
,
'student.views.logout_user'
,
name
=
'logout'
),
# static/proof-of-concept views
url
(
r'^ux-alerts$'
,
'contentstore.views.ux_alerts'
,
name
=
'ux-alerts'
)
)
if
settings
.
ENABLE_JASMINE
:
...
...
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