<%- model_class = Alert -%> <% @alerts.each do |alert| %> <% end %>
<%= 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) %> <%=t '.actions', :default => t("helpers.actions") %>
<%= link_to alert.id, alert_path(alert) %> <%= alert.user_id %> <%= alert.department %> <%= alert.course %> <%= alert.sections.reject { |v| v.blank? }.join(', ') %> <%= alert.semester %> <%= alert.alerted %> <%=l alert.created_at %> <%= 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")), alert_path(alert), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger' %>
<%= link_to t('.new', :default => t("helpers.links.new")), new_alert_path, :class => 'btn btn-primary' %>