From cb3862847e67e14b0bef4f5df84aaf99d6c672c9 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 12 Apr 2013 19:04:30 -0400 Subject: [PATCH] Update index display --- app/views/alerts/index.html.erb | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/app/views/alerts/index.html.erb b/app/views/alerts/index.html.erb index 7e93012..562d3c1 100644 --- a/app/views/alerts/index.html.erb +++ b/app/views/alerts/index.html.erb @@ -5,29 +5,25 @@ - - - - - - - - + + + + + <% @alerts.each do |alert| %> - - - - + - +
<%= model_class.human_attribute_name(:id) %><%= model_class.human_attribute_name(:user_id) %><%= model_class.human_attribute_name(:department) %><%= model_class.human_attribute_name(:course) %><%= model_class.human_attribute_name(:sections) %><%= model_class.human_attribute_name(:semester) %><%= model_class.human_attribute_name(:alerted) %><%= model_class.human_attribute_name(:created_at) %>ClassSectionsSemesterAlertedCreated <%=t '.actions', :default => t("helpers.actions") %>
<%= link_to alert.id, alert_path(alert) %><%= alert.user_id %><%= alert.department %><%= alert.course %><%= alert.course_name %> <%= alert.sections.reject { |v| v.blank? }.join(', ') %> <%= alert.semester %> <%= alert.alerted %><%=l alert.created_at %><%= alert.created_at.to_datetime.strftime("%d %b %Y") %> + <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_alert_path(alert), :class => 'btn btn-mini' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")),