1
0
Fork 0

Ignore blank sections

This commit is contained in:
Andrew Tomaka 2013-04-12 18:31:23 -04:00
parent 8d43db7c75
commit ee3c81422d
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@
<td><%= alert.user_id %></td>
<td><%= alert.department %></td>
<td><%= alert.course %></td>
<td><%= alert.sections.join(', ') %></td>
<td><%= alert.sections.reject { |v| v.blank? }.join(', ') %></td>
<td><%= alert.semester %></td>
<td><%= alert.alerted %></td>
<td><%=l alert.created_at %></td>

View file

@ -11,7 +11,7 @@
<dt><strong><%= model_class.human_attribute_name(:course) %>:</strong></dt>
<dd><%= @alert.course %></dd>
<dt><strong><%= model_class.human_attribute_name(:sections) %>:</strong></dt>
<dd><%= @alert.sections.join(', ') %>&nbsp;</dd>
<dd><%= @alert.sections.reject { |v| v.blank? }.join(', ') %>&nbsp;</dd>
<dt><strong><%= model_class.human_attribute_name(:semester) %>:</strong></dt>
<dd><%= @alert.semester %></dd>
<dt><strong><%= model_class.human_attribute_name(:alerted) %>:</strong></dt>