Page MenuHomeGRNET

clients_controller.rb
No OneTemporary

File Metadata

Created
Wed, Jun 10, 12:59 PM

clients_controller.rb

class ClientsController < ApplicationController
before_action :set_client, only: :show
# GET /clients
def index
@clients = Client.includes(:jobs).all
@active_jobs = Job.running.group(:ClientId).count
@hosts = Host.not_baculized
end
# GET /clients/1
def show; end
private
def set_client
@client = Client.find(params[:id])
end
end

Event Timeline