app/helpers/application_helper/button/availability_zone_timeline.rb
class ApplicationHelper::Button::AvailabilityZoneTimeline < ApplicationHelper::Button::Basic
needs :@record
def disabled?
@error_message = _("No Timeline data has been collected for this Availability Zone") unless @record.has_events?
@error_message.present?
end
end