2018-08-18 07:19:57 -04:00
# frozen_string_literal: true
2018-07-25 07:05:40 -04:00
module MirrorHelper
def mirrors_form_data_attributes
2018-11-12 05:52:48 -05:00
{
project_mirror_ssh_endpoint : ssh_host_keys_project_mirror_path ( @project , :json ) ,
project_mirror_endpoint : project_mirror_path ( @project , :json )
}
2018-07-25 07:05:40 -04:00
end
2019-05-01 08:16:03 -04:00
def mirror_lfs_sync_message
2020-07-31 17:10:12 -04:00
html_escape ( _ ( 'The Git LFS objects will %{strong_open}not%{strong_close} be synced.' ) ) % { strong_open : '<strong>' . html_safe , strong_close : '</strong>' . html_safe }
2019-05-01 08:16:03 -04:00
end
2018-08-01 19:49:19 -04:00
end
2019-09-13 09:26:31 -04:00
MirrorHelper . prepend_if_ee ( 'EE::MirrorHelper' )