app/controllers/admin_events_controller.rb
def show
    @categorized_applications = {
      "Pending applications" => @event.applications.submitted.pending,
      "Approved applications" => @event.applications.approved,
      "Rejected applications" => @event.applications.rejected
    }

    respond_to do |format|
      format.html
      format.csv { send_data @event.to_csv, filename: "#{@event.name} #{DateTime.now.strftime("%F")}.csv" }
    end
  end
#Event show view for admins (events/:id/admin)- shows event details, an overview over the status of
#applications (if selection is handled by Travis) and allows selection process for applications as well as csv-download
Event show view for admins (events/:id/admin)- shows event details, an overview over the status of
applications (if selection is handled by Travis) and allows selection process for applications as well as csv-download
Event show view for admins ( events / : id / admin ) - shows event details an overview over the status of applications ( if selection is handled by Travis ) and allows selection process for applications as well as csv - download
def show
    @categorized_applications = {
      "Pending applications" => @event.applications.submitted.pending,
      "Approved applications" => @event.applications.approved,
      "Rejected applications" => @event.applications.rejected
    }
    respond_to do |format|
      format.html
      format.csv { send_data @event.to_csv, filename: "#{@event.name} #{DateTime.now.strftime("%F")}.csv" }
    end
  end
def show @categorized_applications = { "Pending applications" => @event . applications . submitted . pending , "Approved applications" => @event . applications . approved , "Rejected applications" => @event . applications . rejected } respond_to do | format | format . html format . csv { send_data @event . to_csv , filename : "#{@event.name} #{DateTime.now.strftime("%F")}.csv" } end end
Event show view for admins (events/:id/admin)- shows event details, an overview over the status of
applications (if selection is handled by Travis) and allows selection process for applications as well as csv-download
Event show view for admins ( events / : id / admin ) - shows event details an overview over the status of applications ( if selection is handled by Travis ) and allows selection process for applications as well as csv - download