use course nickname on Grades page

test plan:
 - as a student, set a nickname for a course
 - as the student, submit an assignment in the course
 - as a teacher or TA, grade the assignment
 - as the student, go to Grades and ensure the course
   dropdown uses your defined course nickname

closes CNVS-24211

Change-Id: If0d6213f9cceb65cf109f4ff581a0530adff2d56
Reviewed-on: https://gerrit.instructure.com/65651
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Ryan Allen <rallen@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
This commit is contained in:
Jeremy Stanley 2015-10-23 16:40:12 -06:00
parent dc86c80c8e
commit f440b454ed
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@
context_url(course, :context_grades_url)
end
%>
<option value="<%= url %>" <%= 'selected' if course == @context %>><%= course.name %></option>
<option value="<%= url %>" <%= 'selected' if course == @context %>><%= course.nickname_for(@current_user) %></option>
<% end %>
</select>
</div>