Closed leewaa closed 6 years ago
@timogoebel thanks. I made the adjustments as per your requests. Show be good to go now !
@timogoebel The breadcrumb bar will work once https://github.com/theforeman/foreman/pull/5614 is in.
I will change the breadcrumb bar so that it works for nodes, not hosts :D :D
@timogoebel I ended up leaving the breadcrumb switcher out for now, it needs some work to be able to work with non active-record objects, and some more thought needs to be put into the current API also. Foreman does a lot of work in this respect and I don't want add all that dependancy to this Plugin.
For now the breadcrumb items are defined manually as the default does not work out of the box. I could pack it away into a helper, but I like the more explicit approach in the view.
@leewaa: Can you please check out the failing test?
AccessPermissionsTest.test_0742_route puppetdb_foreman/nodes/show should have a permission that grants access
I believe defining a permission for the route in engine.rb should be enough.
[test puppetdb_foreman]
Thanks, @leewaa.
Fixes #53.