From f5facb3455b2bfb893b2393639d4296c4b7a70ed Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Tue, 27 Jun 2023 15:12:35 +0200 Subject: [PATCH] Rely on the plugin_manual mechanism in Foreman Foreman 3.9 fixed this use and it simplifies the code. The plugin already requires Foreman >= 3.10. --- app/helpers/remote_execution_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/helpers/remote_execution_helper.rb b/app/helpers/remote_execution_helper.rb index 1af5b47f3..463b31ac6 100644 --- a/app/helpers/remote_execution_helper.rb +++ b/app/helpers/remote_execution_helper.rb @@ -209,9 +209,8 @@ def time_in_words_span(time) end def documentation_button_rex(section = '') - url = 'http://theforeman.org/plugins/foreman_remote_execution/' + - "#{ForemanRemoteExecution::VERSION.split('.').take(2).join('.')}/index.html#" - documentation_button section, :root_url => url + version = ForemanRemoteExecution::VERSION.split('.').take(2).join('.') + documentation_button section, type: 'plugin_manual', name: 'foreman_remote_execution', version: version, section: "##{section}" end def description_checkbox_f(f, job_template, disabled)