1
0
Fork 0

Update index display

This commit is contained in:
Andrew Tomaka 2013-04-12 19:04:30 -04:00
parent ee3c81422d
commit cb3862847e

View file

@ -5,29 +5,25 @@
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th><%= model_class.human_attribute_name(:id) %></th> <th>Class</th>
<th><%= model_class.human_attribute_name(:user_id) %></th> <th>Sections</th>
<th><%= model_class.human_attribute_name(:department) %></th> <th>Semester</th>
<th><%= model_class.human_attribute_name(:course) %></th> <th>Alerted</th>
<th><%= model_class.human_attribute_name(:sections) %></th> <th>Created</th>
<th><%= model_class.human_attribute_name(:semester) %></th>
<th><%= model_class.human_attribute_name(:alerted) %></th>
<th><%= model_class.human_attribute_name(:created_at) %></th>
<th><%=t '.actions', :default => t("helpers.actions") %></th> <th><%=t '.actions', :default => t("helpers.actions") %></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<% @alerts.each do |alert| %> <% @alerts.each do |alert| %>
<tr> <tr>
<td><%= link_to alert.id, alert_path(alert) %></td> <td><%= alert.course_name %></td>
<td><%= alert.user_id %></td>
<td><%= alert.department %></td>
<td><%= alert.course %></td>
<td><%= alert.sections.reject { |v| v.blank? }.join(', ') %></td> <td><%= alert.sections.reject { |v| v.blank? }.join(', ') %></td>
<td><%= alert.semester %></td> <td><%= alert.semester %></td>
<td><%= alert.alerted %></td> <td><%= alert.alerted %></td>
<td><%=l alert.created_at %></td> <td><%= alert.created_at.to_datetime.strftime("%d %b %Y") %></td>
<td> <td>
<!--<%= link_to t('.show', :default => t("helpers.links.show")),
alert_path(alert), :class => 'btn btn-mini' %>-->
<%= link_to t('.edit', :default => t("helpers.links.edit")), <%= link_to t('.edit', :default => t("helpers.links.edit")),
edit_alert_path(alert), :class => 'btn btn-mini' %> edit_alert_path(alert), :class => 'btn btn-mini' %>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")), <%= link_to t('.destroy', :default => t("helpers.links.destroy")),