Skip to content

Commit e90d635

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 ed7fb71 commit e90d635

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
@@ -207,9 +207,8 @@ def time_in_words_span(time)
207207
end
208208

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

215214
def description_checkbox_f(f, job_template, disabled)

0 commit comments

Comments
 (0)