Skip to content

Commit

Permalink
Merge pull request #4091 from mrpau/hotfix/4088-click-on-the-learn-bu…
Browse files Browse the repository at this point in the history
…tton-above-to-get-started-shown-to-coaches-when-viewing-student-report-with-no-data

"Click on the LEARN button above to get started" shown to coaches when viewing student report with no data
  • Loading branch information
rtibbles committed Jul 14, 2015
2 parents 1295234 + b3c2b1d commit 8db8742
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ var StudentProgressContainerView = Backbone.View.extend({
this.collection.fetch({
success: function() {
if (self.collection.length == 0) { //if the student visits the my progress page before attempting any quizes/videos
show_message("info", gettext("Click on the LEARN button above to get started on your learning journey."));
self.$el.html(""); //this is done to remove the 'Progress Report' header
if (window.statusModel.is_student()) {
show_message("info", gettext("Click on the LEARN button above to get started on your learning journey."));
}
self.$el.html(""); //this is done to remove the 'Progress Report' header
}
}
});
Expand Down

0 comments on commit 8db8742

Please sign in to comment.