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-05-12 08:10:24 -04:00
|
|
|
project_service_hook_log_path(integration.project, integration, log)
|
2019-12-17 10:08:15 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def logs_retry_path(log)
|
2021-05-12 08:10:24 -04:00
|
|
|
retry_project_service_hook_log_path(integration.project, integration, log)
|
2019-12-17 10:08:15 -05:00
|
|
|
end
|
|
|
|
end
|