Skip to content

Commit

Permalink
Rely on the plugin_manual mechanism in Foreman
Browse files Browse the repository at this point in the history
Foreman 3.9 fixed this use and it simplifies the code. The plugin
already requires Foreman >= 3.10.
  • Loading branch information
ekohl committed Apr 26, 2024
1 parent ed7fb71 commit e90d635
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/helpers/remote_execution_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,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)
Expand Down

0 comments on commit e90d635

Please sign in to comment.