Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
54484bfa
Commit
54484bfa
authored
Mar 24, 2014
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proofing status step UI rendering
parent
d6a2730b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
26 deletions
+25
-26
apps/openassessment/templates/openassessmentblock/oa_base.html
+3
-4
apps/openassessment/xblock/static/css/openassessment.css
+9
-9
apps/openassessment/xblock/static/js/openassessment.min.js
+0
-0
apps/openassessment/xblock/static/js/src/oa_base.js
+4
-4
apps/openassessment/xblock/static/sass/oa/views/_oa-base.scss
+9
-9
No files found.
apps/openassessment/templates/openassessmentblock/oa_base.html
View file @
54484bfa
...
...
@@ -53,10 +53,9 @@
<span
class=
"step__status"
>
<span
class=
"step__status__label"
>
This step's status:
</span>
<span
class=
"step__status__value"
>
<span
class=
"copy"
>
Loading
</span>
<i
class=
"icon-refresh icon-spin"
></i>
</span>
<span
class=
"step__status__value"
>
<span
class=
"copy"
>
Loading
</span>
<i
class=
"ico icon-refresh icon-spin"
></i>
</span>
</span>
</header>
...
...
apps/openassessment/xblock/static/css/openassessment.css
View file @
54484bfa
...
...
@@ -892,7 +892,7 @@ hr.divider,
position
:
relative
;
}
.openassessment
.message
{
margin-bottom
:
3
0px
;
margin-bottom
:
2
0px
;
border-radius
:
2px
;
padding
:
20px
20px
;
background
:
#f5f6f7
;
}
...
...
@@ -1038,7 +1038,7 @@ hr.divider,
.openassessment
.openassessment__steps__step
.step__status
.ico
{
display
:
inline-block
;
vertical-align
:
bottom
;
margin-left
:
5
px
;
}
margin-left
:
10
px
;
}
.openassessment
.openassessment__steps__step
.step__status
.copy
{
color
:
#646464
;
}
@media
screen
and
(
max-width
:
529px
)
{
...
...
@@ -1052,7 +1052,7 @@ hr.divider,
width
:
30.11389%
;
margin-right
:
0
;
position
:
relative
;
top
:
-
5
px
;
top
:
-
8
px
;
text-align
:
right
;
}
.openassessment
.openassessment__steps__step
.step__status
:last-child
{
margin-right
:
0
;
}
}
...
...
@@ -1064,7 +1064,7 @@ hr.divider,
width
:
23.23176%
;
margin-right
:
0
;
position
:
relative
;
top
:
-
5
px
;
top
:
-
8
px
;
text-align
:
right
;
}
.openassessment
.openassessment__steps__step
.step__status
:last-child
{
margin-right
:
0
;
}
}
...
...
@@ -1076,7 +1076,7 @@ hr.divider,
width
:
23.23176%
;
margin-right
:
0
;
position
:
relative
;
top
:
-
5
px
;
top
:
-
8
px
;
text-align
:
right
;
}
.openassessment
.openassessment__steps__step
.step__status
:last-child
{
margin-right
:
0
;
}
}
...
...
@@ -1088,7 +1088,7 @@ hr.divider,
width
:
23.23176%
;
margin-right
:
0
;
position
:
relative
;
top
:
-
5
px
;
top
:
-
8
px
;
text-align
:
right
;
}
.openassessment
.openassessment__steps__step
.step__status
:last-child
{
margin-right
:
0
;
}
}
...
...
@@ -1152,7 +1152,7 @@ hr.divider,
color
:
#e5a635
;
}
.openassessment
.openassessment__steps__step.is--incomplete
.step__status__value
{
background
:
#e5a635
;
}
.openassessment
.openassessment__steps__step.is--incomplete
.step__status__value
.copy
{
.openassessment
.openassessment__steps__step.is--incomplete
.step__status__value
.copy
,
.openassessment
.openassessment__steps__step.is--incomplete
.step__status__value
.ico
{
color
:
white
;
}
.openassessment
.openassessment__steps__step.is--incomplete
.step__label
{
color
:
#e5a635
;
}
...
...
@@ -1184,14 +1184,14 @@ hr.divider,
background
:
#62c24a
;
}
.openassessment
.openassessment__steps__step.is--complete
.step__status__value
.ico
{
display
:
inline-block
;
}
.openassessment
.openassessment__steps__step.is--complete
.step__status__value
.copy
{
.openassessment
.openassessment__steps__step.is--complete
.step__status__value
.copy
,
.openassessment
.openassessment__steps__step.is--complete
.step__status__value
.ico
{
color
:
white
;
}
.openassessment
.openassessment__steps__step.has--error
.step__counter
:before
{
border-color
:
rgba
(
188
,
85
,
71
,
0.5
);
color
:
#bc5547
;
}
.openassessment
.openassessment__steps__step.has--error
.step__status__value
{
background
:
#bc5547
;
}
.openassessment
.openassessment__steps__step.has--error
.step__status__value
.copy
{
.openassessment
.openassessment__steps__step.has--error
.step__status__value
.copy
,
.openassessment
.openassessment__steps__step.has--error
.step__status__value
.ico
{
color
:
white
;
}
.openassessment
.openassessment__steps__step.has--error
.step__label
{
color
:
#bc5547
;
}
...
...
apps/openassessment/xblock/static/js/openassessment.min.js
View file @
54484bfa
This diff is collapsed.
Click to expand it.
apps/openassessment/xblock/static/js/src/oa_base.js
View file @
54484bfa
...
...
@@ -98,7 +98,7 @@ OpenAssessment.BaseUI.prototype = {
ui
.
save
();
}
);
}
).
fail
(
function
(
errMsg
)
{
ui
.
showLoadError
(
'response'
);
...
...
@@ -253,7 +253,7 @@ OpenAssessment.BaseUI.prototype = {
function
(
html
)
{
// Load the HTML
$
(
'#openassessment__grade'
,
ui
.
element
).
replaceWith
(
html
);
// Install a click handler for collapse/expand
var
sel
=
$
(
'#openassessment__grade'
,
ui
.
element
);
ui
.
setUpCollapseExpand
(
sel
);
...
...
@@ -267,7 +267,7 @@ OpenAssessment.BaseUI.prototype = {
).
fail
(
function
(
errMsg
)
{
ui
.
showLoadError
(
'grade'
,
errMsg
);
});
},
/**
...
...
@@ -453,7 +453,7 @@ OpenAssessment.BaseUI.prototype = {
showLoadError
:
function
(
step
)
{
var
container
=
'#openassessment__'
+
step
;
$
(
container
).
toggleClass
(
'has--error'
,
true
);
$
(
container
+
' .step__status__value i'
).
removeClass
().
addClass
(
'icon-warning-sign'
);
$
(
container
+
' .step__status__value i'
).
removeClass
().
addClass
(
'ico
ico
n-warning-sign'
);
$
(
container
+
' .step__status__value .copy'
).
html
(
'Unable to Load'
);
}
};
...
...
apps/openassessment/xblock/static/sass/oa/views/_oa-base.scss
View file @
54484bfa
...
...
@@ -14,7 +14,7 @@
// general: messages
// --------------------
.message
{
margin-bottom
:
(
$baseline-v
*
1
.5
)
;
margin-bottom
:
$baseline-v
;
border-radius
:
(
$baseline-v
/
10
);
padding
:
$baseline-v
(
$baseline-h
/
2
);
background
:
$color-decorative-quaternary
;
...
...
@@ -239,7 +239,7 @@
@extend
%icon-2
;
display
:
inline-block
;
vertical-align
:
bottom
;
margin-left
:
(
$baseline-v
/
4
);
margin-left
:
(
$baseline-v
/
2
);
}
.copy
{
...
...
@@ -255,7 +255,7 @@
@include
span-columns
(
2
of
6
);
@include
omega
();
position
:
relative
;
top
:
-
(
$baseline-v
/
4
)
;
top
:
-
8px
;
text-align
:
right
;
}
...
...
@@ -263,7 +263,7 @@
@include
span-columns
(
3
of
12
);
@include
omega
();
position
:
relative
;
top
:
-
(
$baseline-v
/
4
)
;
top
:
-8px
;
text-align
:
right
;
}
...
...
@@ -271,7 +271,7 @@
@include
span-columns
(
3
of
12
);
@include
omega
();
position
:
relative
;
top
:
-
(
$baseline-v
/
4
)
;
top
:
-
8px
;
text-align
:
right
;
}
...
...
@@ -279,7 +279,7 @@
@include
span-columns
(
3
of
12
);
@include
omega
();
position
:
relative
;
top
:
-
(
$baseline-v
/
4
)
;
top
:
-
8px
;
text-align
:
right
;
}
}
...
...
@@ -405,7 +405,7 @@
.step__status__value
{
background
:
$color-incomplete
;
.copy
{
.copy
,
.ico
{
color
:
$white-t
;
}
}
...
...
@@ -479,7 +479,7 @@
display
:
inline-block
;
}
.copy
{
.copy
,
.ico
{
color
:
$white-t
;
}
}
...
...
@@ -496,7 +496,7 @@
.step__status__value
{
background
:
$color-error
;
.copy
{
.copy
,
.ico
{
color
:
$white-t
;
}
}
...
...
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