Skip to content

Commit f5facb3

Browse files
committed
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.
1 parent 6ad7678 commit f5facb3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/helpers/remote_execution_helper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ def time_in_words_span(time)
209209
end
210210

211211
def documentation_button_rex(section = '')
212-
url = 'http://theforeman.org/plugins/foreman_remote_execution/' +
213-
"#{ForemanRemoteExecution::VERSION.split('.').take(2).join('.')}/index.html#"
214-
documentation_button section, :root_url => url
212+
version = ForemanRemoteExecution::VERSION.split('.').take(2).join('.')
213+
documentation_button section, type: 'plugin_manual', name: 'foreman_remote_execution', version: version, section: "##{section}"
215214
end
216215

217216
def description_checkbox_f(f, job_template, disabled)

0 commit comments

Comments
 (0)