From 6563f54590d3da00a81bb09b069c73f125b987c9 Mon Sep 17 00:00:00 2001 From: Simon Chen Date: Wed, 14 Nov 2018 14:44:17 -0500 Subject: [PATCH] fix(functionality): Add links and subtitles to the UI so it helps user navigate --- src/components/Gradebook/gradebook.scss | 3 ++ src/components/Gradebook/index.jsx | 59 ++++++++++++++----------- 2 files changed, 37 insertions(+), 25 deletions(-) diff --git a/src/components/Gradebook/gradebook.scss b/src/components/Gradebook/gradebook.scss index d4c535e6..fcda1553 100644 --- a/src/components/Gradebook/gradebook.scss +++ b/src/components/Gradebook/gradebook.scss @@ -1,3 +1,6 @@ +.back-link{ + float:right; +} .student-filters{ display: flex; .label{ diff --git a/src/components/Gradebook/index.jsx b/src/components/Gradebook/index.jsx index 1c48b0f4..410b0fbf 100644 --- a/src/components/Gradebook/index.jsx +++ b/src/components/Gradebook/index.jsx @@ -133,8 +133,6 @@ export default class Gradebook extends React.Component { return 'Tracks'; }; - getDataDownloadUrl = courseId => `${configuration.LMS_BASE_URL}/courses/${courseId}/instructor#view-data_download`; - formatter = { percent: entries => entries.map((entry) => { const results = { username: entry.username }; @@ -174,12 +172,21 @@ export default class Gradebook extends React.Component { }), }; + lmsInstructorDashboardUrl = courseId => `${configuration.LMS_BASE_URL}/courses/${courseId}/instructor`; + render() { return (
+ + Back to Dashboard +

Gradebook

+

{this.props.match.params.courseId}


@@ -188,13 +195,13 @@ export default class Gradebook extends React.Component { this.props.toggleFormat('percent')} /> - + this.props.toggleFormat('absolute')} /> - +
Category: - this.props.filterColumns('hw', this.props.grades[0])} /> - + - @@ -272,7 +281,7 @@ export default class Gradebook extends React.Component {
this.props.searchForUser(this.props.match.params.courseId, value, this.props.selectedCohort, this.props.selectedTrack)}