Refactor Shifts#index to move conditional path logic from view to controller concern