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
9f19eafc
Commit
9f19eafc
authored
Jan 23, 2013
by
Diana Huang
Committed by
Vik Paruchuri
Jan 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update main notification dashboard with new styles.
parent
4140b74e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
14 deletions
+59
-14
lms/djangoapps/open_ended_grading/views.py
+7
-3
lms/static/sass/course/_open_ended_grading.scss
+38
-0
lms/templates/open_ended_problems/combined_notifications.html
+14
-11
No files found.
lms/djangoapps/open_ended_grading/views.py
View file @
9f19eafc
...
@@ -193,6 +193,11 @@ def combined_notifications(request, course_id):
...
@@ -193,6 +193,11 @@ def combined_notifications(request, course_id):
notification_tuples
=
open_ended_notifications
.
NOTIFICATION_TYPES
notification_tuples
=
open_ended_notifications
.
NOTIFICATION_TYPES
notification_list
=
[]
notification_list
=
[]
description_dict
=
{
'Peer Grading'
:
"View all problems that require peer assessment in this particular course."
,
'Staff Grading'
:
"View ungraded submissions submitted by your students for the open ended problems in the course."
,
'Problems you have submitted'
:
"View open ended problems that you have previously submitted for grading."
}
for
response_num
in
xrange
(
0
,
len
(
notification_tuples
)):
for
response_num
in
xrange
(
0
,
len
(
notification_tuples
)):
tag
=
notification_tuples
[
response_num
][
0
]
tag
=
notification_tuples
[
response_num
][
0
]
if
tag
in
response
:
if
tag
in
response
:
...
@@ -200,13 +205,12 @@ def combined_notifications(request, course_id):
...
@@ -200,13 +205,12 @@ def combined_notifications(request, course_id):
human_name
=
notification_tuples
[
response_num
][
2
]
human_name
=
notification_tuples
[
response_num
][
2
]
url
=
_reverse_without_slash
(
url_name
,
course_id
)
url
=
_reverse_without_slash
(
url_name
,
course_id
)
has_img
=
response
[
tag
]
has_img
=
response
[
tag
]
img_path
=
"/static/images/slider-handle.png"
notification_item
=
{
notification_item
=
{
'url'
:
url
,
'url'
:
url
,
'name'
:
human_name
,
'name'
:
human_name
,
'
has_img
'
:
has_img
,
'
alert
'
:
has_img
,
'
img'
:
img_path
,
'
description'
:
description_dict
[
human_name
]
}
}
notification_list
.
append
(
notification_item
)
notification_list
.
append
(
notification_item
)
...
...
lms/static/sass/course/_open_ended_grading.scss
View file @
9f19eafc
...
@@ -13,5 +13,43 @@
...
@@ -13,5 +13,43 @@
padding
:
7px
;
padding
:
7px
;
}
}
}
}
.notification-container
{
margin
:
30px
0px
;
}
.alert
{
background-color
:
red
;
}
.notification
{
margin
:
10px
;
width
:
30%
;
@include
inline-block
;
vertical-align
:
top
;
.notification-link
{
display
:block
;
height
:
8em
;
padding
:
10px
;
border
:
1px
solid
black
;
text-align
:
center
;
}
.notification-title
{
text-transform
:
uppercase
;
}
.notification-link
:hover
{
background-color
:
#eee
;
color
:
black
;
}
.notification-description
{
padding-top
:
5%
;
}
@include
clearfix
;
}
}
}
lms/templates/open_ended_problems/combined_notifications.html
View file @
9f19eafc
...
@@ -23,19 +23,23 @@
...
@@ -23,19 +23,23 @@
No items require attention at the moment.
No items require attention at the moment.
</div>
</div>
%else:
%else:
<
ul
class=
"notification-list
"
>
<
div
class=
"notification-container
"
>
%for notification in notification_list:
%for notification in notification_list:
<li>
% if notification['alert']:
<a
href=
"${notification['url']}"
>
<div
class=
"notification alert"
>
${notification['name']}
% else:
% if notification['has_img'] == True:
<div
class=
"notification"
>
<img
src=
"${notification['img']}"
/>
% endif
%endif
<a
href=
"${notification['url']}"
class=
"notification-link"
>
<div
class=
"notification-title"
>
${notification['name']}
</div>
<div
class=
"notification-description"
>
<p>
${notification['description']}
</p>
</div>
</a>
</a>
</
li
>
</
div
>
%endfor
%endfor
</
ul
>
</
div
>
%endif
%endif
%endif
%endif
</div>
</div>
</section>
</section>
\ No newline at end of file
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