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
fd1cfab0
Commit
fd1cfab0
authored
Jul 02, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add course info toggle arrow
parent
0d70d5ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
4 deletions
+44
-4
lms/static/coffee/src/instructor_dashboard/course_info.coffee
+7
-3
lms/static/sass/course/instructor/_instructor_2.scss
+33
-0
lms/templates/courseware/instructor_dashboard_2/course_info.html
+4
-1
No files found.
lms/static/coffee/src/instructor_dashboard/course_info.coffee
View file @
fd1cfab0
...
...
@@ -9,15 +9,19 @@ class CourseInfo
@
$course_errors_wrapper
=
@
$section
.
find
'.course-errors-wrapper'
if
@
$course_errors_wrapper
.
length
@
$course_error_toggle
=
@
$course_errors_wrapper
.
find
(
'h2'
).
eq
(
0
)
@
$course_error_toggle
=
@
$course_errors_wrapper
.
find
(
'.toggle-wrapper'
).
eq
(
0
)
@
$course_error_toggle_text
=
@
$course_error_toggle
.
find
(
'h2'
).
eq
(
0
)
@
$course_error_visibility_wrapper
=
@
$course_errors_wrapper
.
find
'.course-errors-visibility-wrapper'
@
$course_errors
=
@
$course_errors_wrapper
.
find
(
'.course-error'
)
@
$course_error_toggle
.
text
@
$course_error_toggle
.
text
()
+
" (
#{
@
$course_errors
.
length
}
)"
@
$course_error_toggle
_text
.
text
@
$course_error_toggle_text
.
text
()
+
" (
#{
@
$course_errors
.
length
}
)"
@
$course_error_toggle
.
click
(
e
)
=>
e
.
preventDefault
()
@
$course_error_visibility_wrapper
.
toggle
()
if
@
$course_errors_wrapper
.
hasClass
'open'
@
$course_errors_wrapper
.
removeClass
'open'
else
@
$course_errors_wrapper
.
addClass
'open'
# exports
...
...
lms/static/sass/course/instructor/_instructor_2.scss
View file @
fd1cfab0
...
...
@@ -102,8 +102,41 @@
color
:
#D60000
;
}
&
.open
{
.toggle-wrapper
{
.triangle
{
background-image
:
url('/static/images/bullet-open.png')
;
}
}
.course-errors-visibility-wrapper
{
display
:
block
;
}
}
.toggle-wrapper
{
width
:
300px
;
cursor
:
pointer
;
div
{
float
:left
;
}
h2
{
float
:
left
;
}
.triangle
{
width
:
20px
;
height
:
20px
;
float
:
left
;
background-image
:
url('/static/images/bullet-closed.png')
;
background-repeat
:
no-repeat
;
background-position
:
8px
6px
;
}
}
.course-errors-visibility-wrapper
{
display
:
none
;
clear
:
both
;
.course-error
{
margin-bottom
:
1em
;
...
...
lms/templates/courseware/instructor_dashboard_2/course_info.html
View file @
fd1cfab0
...
...
@@ -39,7 +39,10 @@
%if len(section_data['course_errors']):
<div
class=
"course-errors-wrapper"
>
<a
href=
""
><h2
class=
"title"
>
Course Warnings:
</h2></a>
<div
class=
"toggle-wrapper"
>
<h2
class=
"title"
>
Course Warnings:
</h2>
<div
class=
"triangle"
></div>
</div>
<div
class=
"course-errors-visibility-wrapper"
>
%for error in section_data['course_errors']:
<div
class=
"course-error"
>
...
...
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