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")),