escaping of enrollments in course drop down, fixes #3907
Change-Id: If995936a602f9e0fb43bf756d52c2522731d7947 Reviewed-on: https://gerrit.instructure.com/2433 Reviewed-by: Bracken Mosbacker <bracken@instructure.com> Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
parent
96e746c31e
commit
202effa992
|
@ -1,6 +1,6 @@
|
|||
<li>
|
||||
<a href="<%= menu_enrollment[:enrollment].workflow_state == "invited" ? course_path(menu_enrollment[:enrollment].course_id, :invitation => menu_enrollment[:enrollment].uuid) : course_path(menu_enrollment[:enrollment].course_id) %>">
|
||||
<span class="name ellipsis" title="<%= menu_enrollment[:enrollment].long_name %>"><%= menu_enrollment[:enrollment].short_name %></span>
|
||||
<span class="subtitle ellipsis"><%= menu_enrollment[:enrollment].workflow_state == "invited" ? content_tag('b', 'Invited') : "Enrolled" %> as a <%= menu_enrollment[:types].sort.map{|t| content_tag('b', t) }.uniq.to_sentence %></span>
|
||||
<span class="subtitle ellipsis"><%= menu_enrollment[:enrollment].workflow_state == "invited" ? content_tag('b', 'Invited') : "Enrolled" %> as a <%= raw(menu_enrollment[:types].sort.map{|t| content_tag('b', t) }.uniq.to_sentence) %></span>
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue