2019-12-17 10:08:15 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ServiceHookPresenter < Gitlab::View::Presenter::Delegated
|
2021-09-21 05:12:21 -04:00
|
|
|
presents ::ServiceHook, as: :service_hook
|
2019-12-17 10:08:15 -05:00
|
|
|
|
|
|
|
def logs_details_path(log)
|
2021-12-30 13:13:34 -05:00
|
|
|
project_integration_hook_log_path(integration.project, integration, log)
|
2019-12-17 10:08:15 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def logs_retry_path(log)
|
2021-12-30 13:13:34 -05:00
|
|
|
retry_project_integration_hook_log_path(integration.project, integration, log)
|
2019-12-17 10:08:15 -05:00
|
|
|
end
|
|
|
|
end
|