Ignore blank sections
This commit is contained in:
parent
8d43db7c75
commit
ee3c81422d
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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(', ') %> </dd>
|
||||
<dd><%= @alert.sections.reject { |v| v.blank? }.join(', ') %> </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>
|
||||
|
|
Loading…
Reference in a new issue