-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixes #32848 - Support linking to docs.theforeman.org #9756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -305,8 +305,8 @@ def edit_inline(object, property, options = {}) | |||
| editable(object, property, {:type => type, :title => title, :value => value, :class => klass, :source => select_values, :url => update_url, :placeholder => placeholder}.compact) | ||||
| end | ||||
|
|
||||
| def documentation_url(section = "", options = {}) | ||||
| main_app.external_link_url(options.merge(type: 'manual', params: { section: section })) | ||||
| def documentation_url(section = nil, type: 'manual', **options) | ||||
| main_app.external_link_url(type: type, section: section, params: options) | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure? The route is includes the section: Line 558 in df3a0b0
Now I'll immediately admit my knowledge of Rails routing may be lacking, but I don't see a difference between type and section there, other than that section is optional.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, you are correct: As long as it works - I'm good :)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't check if passing it without a section also works, but I'm assuming it does.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does. When no section is passed, the final url does not contain a fragment. |
||||
| end | ||||
|
|
||||
| def spinner(text = '', options = {}) | ||||
|
|
||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be safe, but I'm not 100% sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine!