gitlab-org--gitlab-foss/app/helpers/mirror_helper.rb

17 lines
424 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-07-25 07:05:40 -04:00
module MirrorHelper
def mirrors_form_data_attributes
{
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
_('The Git LFS objects will <strong>not</strong> be synced.').html_safe
end
2018-08-01 19:49:19 -04:00
end
MirrorHelper.prepend_if_ee('EE::MirrorHelper')