Skip to content
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

This makes third level navigation in panel sticky. #329

Merged
merged 1 commit into from
Jul 19, 2012
Merged

This makes third level navigation in panel sticky. #329

merged 1 commit into from
Jul 19, 2012

Conversation

Pajk
Copy link
Contributor

@Pajk Pajk commented Jul 17, 2012

Selected tab maintain selected for all items from left column.

I tried to make work the sticky 3rd level navigation. It is working but I am not very satisfied with it because of the workaround for 'system_packages/packages'. I tried to convince simple-navigation to include additional info to the link (something like data-rel='system_package/packages') but I failed. Do you know a way how to do it better?

@ghost ghost assigned thomasmckay Jul 17, 2012
@thomasmckay
Copy link
Member

What is special about the packages? Is it because it points to a different controller?

@Pajk
Copy link
Contributor Author

Pajk commented Jul 17, 2012

It's because part of the route after id contains slash. And the last_ajax_panelpage is extracted from link as the part after last slash in url. Another way could be to check for id (/number/) and take all after it but i don't know if we can rely on this.

@thomasmckay
Copy link
Member

I would suggest either cleaning up that route to leave off the trailing / or making the tokenizer a bit smarter. Putting specific routes in here is not the way to go. ("new" is a special case)

@Pajk
Copy link
Contributor Author

Pajk commented Jul 19, 2012

@thomasmckay Is it smart enought now? Can we rely on /katello|sam|whatever/some_resource/some_id/whate/ver ? extract_panelpage takes everything from the 4th part.

thomasmckay pushed a commit that referenced this pull request Jul 19, 2012
This makes third level navigation in panel sticky.
@thomasmckay thomasmckay merged commit 04cd676 into Katello:master Jul 19, 2012
thomasmckay pushed a commit that referenced this pull request Apr 27, 2013
This makes third level navigation in panel sticky.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants